[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [POSIX conformance] "." looks for file in the current directory

From: Stephane Chazelas
Subject: Re: [POSIX conformance] "." looks for file in the current directory
Date: Tue, 10 Jun 2008 10:35:55 +0100
User-agent: Mutt/1.5.16 (2007-09-19)

On Tue, Jun 10, 2008 at 11:20:54AM +0200, Andreas Schwab wrote:
> address@hidden writes:
> > SUSv3> Some older implementations searched the current directory
> > SUSv3> for the file, even if the value of PATH disallowed it. This
> > SUSv3> behavior was omitted from this volume of IEEE Std
> > SUSv3> 1003.1-2001 due to concerns about introducing the
> > SUSv3> susceptibility to trojan horses that the user might be
> > SUSv3> trying to avoid by leaving dot out of PATH .
> Ironically, the example just before the rationale depends exactly on
> finding the file in the current directory.

Indeed, and they forgot to quote variables, and they use "echo"
which they recommand not to use. And at least the HTML version
is missing a line break.

Note that they don't say whether $PATH contains the current
directory, so it's still a valid example. It's just a bit
misleading, they should have used ". ./foobar"


reply via email to

[Prev in Thread] Current Thread [Next in Thread]