Changes

Jump to navigation Jump to search
386 bytes added ,  14:34, 12 September 2009
no edit summary
Your bash shell understand special characters with special meanings. For example, $var is used to display the variable value. Bash expands variables and [[wildcards]], for example:<source lang="bash">echo $PATHecho $PS1echo /etc/*.conf</source>However, sometime you do not wish to use variables or [[wildcards]]. For example, do not print value of $PATH, but just print $PATH on screen as a word. You can enable or disable the meaning of a special character by enclosing them into a single or double quotes. This is also useful to suppress warnings and error messages while writing the shell scripts. <source lang="bash">echo "Path is $PATH"</source>OR<source lang="bash">echo 'I want to print $PATH'</source>
==Quoting==
There are three types of quotes

Navigation menu