syntax:quoting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
syntax:quoting [2015/08/11 03:14]
bill_thomson
syntax:quoting [2019/10/30 17:39] (current)
ersen add tilde exp. to weak quoting
Line 3: Line 3:
 {{keywords>​bash shell scripting quoting quotes escape backslash marks singlequotes doublequotes single double}} {{keywords>​bash shell scripting quoting quotes escape backslash marks singlequotes doublequotes single double}}
  
-Quoting and escaping ​is really an important ​way to influence the way Bash treats ​your input. There are three recognized types:+Quoting and escaping ​are important, as they influence the way Bash acts upon your input. There are three recognized types:
   * **per-character escaping** using a backslash: ''​\$stuff''​   * **per-character escaping** using a backslash: ''​\$stuff''​
   * **weak quoting** with double-quotes:​ ''"​stuff"''​   * **weak quoting** with double-quotes:​ ''"​stuff"''​
Line 60: Line 60:
  
 Inside a weak-quoted string there'​s **no special interpretion of**: Inside a weak-quoted string there'​s **no special interpretion of**:
-  * spaces as word-separators (on inital ​commandline ​splitting and on [[syntax:​expansion:​wordsplit | word splitting]]!)+  * spaces as word-separators (on inital ​command line splitting and on [[syntax:​expansion:​wordsplit | word splitting]]!)
   * single-quotes to introduce strong-quoting (see below)   * single-quotes to introduce strong-quoting (see below)
   * characters for pattern matching   * characters for pattern matching
 +  * tilde expansion
   * pathname expansion   * pathname expansion
   * process substitution   * process substitution
  • syntax/quoting.1439262855.txt
  • Last modified: 2015/08/11 03:14
  • by bill_thomson