Date: Mon, 02 Sep 1996 00:03:46 -0700 From: "Jordan K. Hubbard" <jkh@time.cdrom.com> To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Cc: freebsd-current@FreeBSD.org (FreeBSD-current users), bde@zeta.org.au (Bruce Evans) Subject: Re: Anyone mind if I remove the following braindamage from test(1)? Message-ID: <2893.841647826@time.cdrom.com> In-Reply-To: Your message of "Mon, 02 Sep 1996 08:31:48 %2B0200." <199609020631.IAA22016@uriah.heep.sax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
> No: > > j@uriah 651% [ -d ] && echo Yup, -d aint empty. > Yup, -d aint empty. > > That's apparently the reasoning behind. > > > Is there any POSIX weirdness which > > mandates that test not do proper argument checking? > > The algorithm for determining the precedence of the operators and the 1 That's really weird, but at least -f, -e and so on are all broken in the same way. :-) And I still think it's a bug. I don't see why "[ -f /tmp/i_exist ]" and "[ -f ]" should be treated identically. I'd expect the opposite. Jordan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2893.841647826>