The only problem: When /bin/sh is really just Bourne the kornish $(...) won't work, i.e. on Solaris and probably the BSDs - if it's not actually some kind of ksh. And on some Linux systems it's dash and not bash...
Regards, Florian Am 24.07.2011 10:13 schrieb "lolilolicon" <loliloli...@gmail.com>: > On 07/24/11 at 11:38am, anonymous wrote: >> On Sun, Jul 24, 2011 at 02:34:22PM +0800, lolilolicon wrote: >> > > unset IFS >> > > >> > > cmd=$(dmenu "$@" < "$CACHE") && eval exec "$cmd" >> > Yeah, I see you just hate backticks :P >> > >> >> There is a difference: >> >> % echo `echo '\\'` >> \ >> % echo $(echo '\\') >> \\ > > You're right. The backquoted form is "broken" even with no nesting. > Now I'm officially a member of the anti-backticks club. Thank you. >