On Sun, Jul 24, 2011 at 4:40 PM, Anselm R Garbe <garb...@gmail.com> wrote: > On 24 July 2011 08:38, anonymous <p37si...@lavabit.com> 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 '\\') >> \\ > > Yes, but bash'isms are a NO GO in suckless.org shell scripts :) > > Cheers, > Anselm > >
This is no bashism. AFAIK, $(command) is in the POSIX shell specification: http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_03