Path: utzoo!attcan!uunet!ateng!chip From: chip@ateng.uucp (Chip Salzenberg) Newsgroups: comp.bugs.sys5 Subject: Re: compressdir bug? Message-ID: <1988Sep15.084528.16726@ateng.uucp> Date: 15 Sep 88 12:45:27 GMT References: <303@hawkmoon.MN.ORG> <442@gt-ford.gtisqr.UUCP> <318@hawkmoon.MN.ORG> <450@gt-ford.gtisqr.UUCP> Reply-To: chip@ateng.UUCP (Chip Salzenberg) Organization: A T Engineering, Tampa, FL Lines: 29 According to stu@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 or A T Engineering My employer may or may not agree with me. The urgent leaves no time for the important.