compressdir bug?

Chip Salzenberg chip at ateng.uucp
Thu Sep 15 22:45:27 AEST 1988


According to stu at gtisqr.UUCP (Stu Donaldson):
>As I said, my solution was to create /bin/test.  Here is a copy,
>it is incredibly simple.
>
>	:
>	# /bin/test
>	if [ $* ]
>	then
>	  exit 0
>	else
>	  exit 1
>	fi

Besides being simple, it is also broken.  :-)  Just imagine trying to
run "test '*' = '*'".  Here's a better implementation:

	:
	# /bin/test
	if [ "$@" ]
	then
	  exit 0
	else
	  exit 1
	fi

-- 
Chip Salzenberg                <chip at ateng.uu.net> or <uunet!ateng!chip>
A T Engineering                My employer may or may not agree with me.
	  The urgent leaves no time for the important.



More information about the Comp.bugs.sys5 mailing list