samedi 3 janvier 2015

Running commands stored in shell variables


The following works in my shell (zsh):



> FOO='ls'
> $FOO
file1 file2


but the following doesn't:



> FOO='emacs -nw'
> $FOO
zsh: command not found: emacs -nw


even though invoking emacs -nw directly opens Emacs perfectly well.


Why?



Aucun commentaire:

Enregistrer un commentaire