User Tools

Site Tools


bash:quotes

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
bash:quotes [2019/12/07 12:11] peterbash:quotes [2020/07/15 09:30] (current) – external edit 127.0.0.1
Line 53: Line 53:
 ==== Escaping Quotes ==== ==== Escaping Quotes ====
  
-Putting a **backslash** character \ in front of a quote removes its special meaning. +Putting a **backslash** character **\** in front of a quote removes its special meaning. 
  
 This works inside double quotes, or in the absence of quotes. This works inside double quotes, or in the absence of quotes.
Line 71: Line 71:
   * **3rd line:**  A less portable equivalent using $'...':   * **3rd line:**  A less portable equivalent using $'...':
  
 +**$(...)**-style command substitutions are unique in that the quoting of their contents is completely independent to their surroundings.  This means you don't have to worry about nested quote escaping problems.
  
 ---- ----
bash/quotes.1575720710.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki