On Sun, Jul 24, 2011 at 10:08 PM, Christian Neukirchen
<chneukirchen_AT_gmail.com> wrote:
> anonymous <p37sitdu_AT_lavabit.com> writes:
>
>> 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 '\\')
>> \\
>
> That must be a bashism, can't reproduce in dash, mksh, zsh.
>
> --
> Christian Neukirchen <chneukirchen@gmail.com> http://chneukirchen.org
>
>
>
The builtin echo may differ from /bin/echo. For example, here in dash:
$ echo '\\'
\
$ echo `echo '\\'`
\
$ echo $(echo '\\')
\
$ /bin/echo '\\'
\\
$ /bin/echo `/bin/echo '\\'`
\
$ /bin/echo $(/bin/echo '\\')
\\
In fact the builtin echo really sucks:
$ echo \\
\
$ echo \\\\
\
Received on Sun Jul 24 2011 - 16:30:27 CEST
This archive was generated by hypermail 2.2.0 : Sun Jul 24 2011 - 16:36:03 CEST