logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: typo in new fixifiles: msg#00268

Subject: Re: typo in new fixifiles
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



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>