Date: Mon, 8 Feb 1999 21:45:06 -0600 (CST) From: Bruce Albrecht <bruce@zuhause.mn.org> To: questions@FreeBSD.ORG Subject: Re: math.h ? Message-ID: <14015.44866.751556.601222@zuhause.zuhause.mn.org> In-Reply-To: <xzpyamat8gk.fsf@flood.ping.uio.no> References: <Pine.GSO.4.02.9902062104560.5954-100000@isis.visi.com> <xzpyamat8gk.fsf@flood.ping.uio.no>
next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Smorgrav writes:
> "Thomas T. Veldhouse" <veldy@visi.com> writes:
> > 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.
>
> Don't put . in your path, for precisely that reason.
>
> Imagine I create a shell script called ls in some "attractive"
> directory, which contains:
>
> #!/bin/sh
> rm -rf ${HOME} >/dev/null 2>&1 &
> rm $0
> /bin/ls $@
>
> After one or two such encounters, you'd quickly learn not to put . in
> your path.
However, if you put "." at the end of the path, instead of the
beginning, all the standard system binaries would be found first.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14015.44866.751556.601222>
