Re: [dev] [dmenu] dmenu_run improvements

From: lolilolicon <lolilolicon_AT_gmail.com>
Date: Sun, 24 Jul 2011 16:55:56 +0800

On Sun, Jul 24, 2011 at 4:40 PM, Anselm R Garbe <garbeam_AT_gmail.com> wrote:
> On 24 July 2011 08:38, anonymous <p37sitdu_AT_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
Received on Sun Jul 24 2011 - 10:55:56 CEST

This archive was generated by hypermail 2.2.0 : Sun Jul 24 2011 - 11:00:06 CEST