Re: [dwm] dmenu_cache patch for dmenu 3.0

From: Jukka Salmi <j+dwm_AT_2007.salmi.ch>
Date: Sun, 13 May 2007 12:09:29 +0200

Sander van Dijk --> dwm (2007-05-13 11:52:17 +0200):
> On 5/13/07, Jukka Salmi <j+dwm_AT_2007.salmi.ch> wrote:
>> To be compatible with old shells you should be careful when test(1)ing
>> a potentially unset or empty variable; i.e. use `test x$var != x'
>> instead of `test $var'.
>
> Wouldn't `test "$var"' work as well?

I've been told that there are shells which even get this wrong, leaving
`test x$var ...' as the only portable way... But I've never used such
a shell myself, though.

Regards, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
Received on Sun May 13 2007 - 12:09:30 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:41:37 UTC