From owner-freebsd-current Mon Sep 2 00:04:35 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA18183 for current-outgoing; Mon, 2 Sep 1996 00:04:35 -0700 (PDT) Received: from time.cdrom.com (time.cdrom.com [204.216.27.226]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id AAA18176 for ; Mon, 2 Sep 1996 00:04:32 -0700 (PDT) Received: from time.cdrom.com (localhost [127.0.0.1]) by time.cdrom.com (8.7.5/8.6.9) with ESMTP id AAA02895; Mon, 2 Sep 1996 00:03:46 -0700 (PDT) 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)? In-reply-to: Your message of "Mon, 02 Sep 1996 08:31:48 +0200." <199609020631.IAA22016@uriah.heep.sax.de> Date: Mon, 02 Sep 1996 00:03:46 -0700 Message-ID: <2893.841647826@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > 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