typo in new fixifiles

Robert P. J. Day rpjday at mindspring.com
Thu Jun 24 16:34:49 UTC 2004


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



More information about the fedora-selinux-list mailing list