BlackEnvil <blacken...@gmail.com> wrote:
> [blacken...@space_star ~]$ cd $HOME; mkdir hello\ -world/; touch test; echo
> "ls hello\ -world/" > test; $(grep ls test);
> ls: invalid line width: orld/

Since $() is unquoted, it's simply split according to $IFS (at whitespace).
If you want full shell-language parsing instead, quote it and use
eval:
$ eval "$(grep ls test)"


paul


Reply via email to