Montag, 2. Mai 2011

Shell 006: Nested Calls

In Bash a command can be nested by the following syntax:

cd $(dirname $(which prog))

The syntax for command substitution that uses back ticks does not permit nesting. Therefore the $(command) expansion is required.

Keine Kommentare:

Kommentar veröffentlichen