bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coreutils] coreutils-7.0 expr exposes long-standing bug in matlab s


From: Bob Proulx
Subject: Re: [coreutils] coreutils-7.0 expr exposes long-standing bug in matlab startup script
Date: Mon, 13 Oct 2008 20:14:07 -0600
User-agent: Mutt/1.5.13 (2006-08-11)

Nelson H. F. Beebe wrote:
> <       if [ ! "$lscmd" ]; then
> ---
> >       if [ ! " $lscmd" ]; then

That expression can never be true due to the additional space.
I suggest using the -z operator instead.

  if [ -z "$lscmd" ]; then

Bob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]