Wiki Update: Using Paths in Shell Scripts

wiki
shellscript

#1

Submitted for your review, comment, and/or revision, the following Wiki article has been updated:

Passing Paths in Variables in Shell Scripts

Primary Changes

  • ADD example of how to properly quote complex command lines that use both KM Variable and single quotes.

@peternlewis, Chris @ccstone: Please review my changes to ensure I have properly captured the basis for quoting Bash strings.


#2

Clearly we both had the same idea.

I expanded out the Quoting Strings section:

https://wiki.keyboardmaestro.com/action/Execute_a_Shell_Script#Quoting_Strings

Probably the Passing Paths section should concentrate on the paths issue (particularly spaces in paths and handling ~), and the quoting strings section can cover the more arcane parts of single and double quoted strings.