From owner-freebsd-current Mon Sep 2 06:46:58 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA12028 for current-outgoing; Mon, 2 Sep 1996 06:46:58 -0700 (PDT) Received: from halloran-eldar.lcs.mit.edu (halloran-eldar.lcs.mit.edu [18.26.0.159]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id GAA12022 for ; Mon, 2 Sep 1996 06:46:56 -0700 (PDT) Received: by halloran-eldar.lcs.mit.edu; (5.65/1.1.8.2/19Aug95-0530PM) id AA12940; Mon, 2 Sep 1996 09:46:00 -0400 Date: Mon, 2 Sep 1996 09:46:00 -0400 From: Garrett Wollman Message-Id: <9609021346.AA12940@halloran-eldar.lcs.mit.edu> To: "Jordan K. Hubbard" Cc: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch), 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: <2920.841647977@time.cdrom.com> References: <199609020631.IAA22016@uriah.heep.sax.de> <2920.841647977@time.cdrom.com> Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk < said: > I'd expect that to hold true only if the argument was not a flag > argument which required a parameter, then I'd expect it to puke. This > would also help to quickly find instances where you'd undefined a > necessary variable in the source tree, instead of giving a cryptic > error message like: ``usage: rm [-f | -i] [-dPRr] file ...'' Use: [ -d "$foo" ] instead of [ -d $foo ] . This will ensure that two arguments get passed to the `-d' primitive, even if $foo is not defined. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, ANA, or NSA| - Susan Aglukark and Chad Irschick