Re: [dev] [dmenu] dmenu_run improvements

From: Florian Ermisch <floh.edo_AT_googlemail.com>
Date: Sun, 24 Jul 2011 10:20:01 +0200

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" <lolilolicon_AT_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.
>
Received on Sun Jul 24 2011 - 10:20:01 CEST

This archive was generated by hypermail 2.2.0 : Sun Jul 24 2011 - 10:24:04 CEST