From owner-freebsd-questions Mon Feb 8 12:25:39 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA25629 for freebsd-questions-outgoing; Mon, 8 Feb 1999 12:25:39 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from alpha.comkey.com.au (alpha.comkey.com.au [203.9.152.215]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id MAA25550 for ; Mon, 8 Feb 1999 12:25:28 -0800 (PST) (envelope-from gjb@comkey.com.au) Received: (qmail 13909 invoked by uid 1001); 8 Feb 1999 20:15:17 -0000 Message-ID: <19990208201517.13908.qmail@alpha.comkey.com.au> X-Posted-By: GBA-Post 1.04 06-Feb-1999 X-PGP-Fingerprint: 5A91 6942 8CEA 9DAB B95B C249 1CE1 493B 2B5A CE30 Date: Tue, 09 Feb 1999 06:15:16 +1000 From: Greg Black To: "Thomas T. Veldhouse" Cc: cjclark@home.com, keith@apcs.com.au, questions@FreeBSD.ORG Subject: Re: math.h ? References: In-reply-to: of Sat, 06 Feb 1999 21:06:07 CST Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Don't use test as your output binary. There is a system program called > test, and if you have . in you path, you may not figure out why your > program is not working. The evils of `.' in the PATH have been covered and we can overlook the lack of an important word in the paragraph above. There's another reason not to use `test' as a program name -- most decent shells (including many versions of /bin/sh) provide `test' as a builtin so, whether `.' is in your path or not, the shell's builtin `test' will be run rather than your test program unless you remember to call it as `./test'. That's yet another reason why old hands tend to use names like `foo' and `bar' for test programs, since these are not standard command names. -- Greg Black To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message