<tt>'...'</tt>: Turn off Meaning of Special Characters.



next up previous contents
Next: ;;...;;: Turn off Up: Special Characters Previous: Special Characters

'...': Turn off Meaning of Special Characters.

Single quotes are used within the shell and within the scripts to turn off the meaning of special characters, including spaces. A dollar sign ($) will normally be interpreted as a dollar sign, not the content of the variable following that $ sign.

For example,

sh_prompt VARI=me
sh_prompt echo $VARI
sh_prompt me
sh_prompt echo '$VARI'
sh_prompt $VARI



Super-User
Fri Feb 17 15:55:40 EST 1995