Re: typo in new fixifiles

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

 



On Thu, 24 Jun 2004, Tom London wrote:

New fixfiles has lines like:
  if [ $1 != "" ]; then

These produce shell errors.  I think they could be:
  if [ x$1 != "x" ]; then

isn't it sufficient to just check whether

  [ "$1" != "" ]

there's also always:

  [ -n "$1" ]    (IIRC, checking whether a string is non-zero length)


rday

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux