bug-bash
[Top][All Lists]
Advanced

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

Re: Inconsitent treatment of * (globbing)


From: Stephane CHAZELAS
Subject: Re: Inconsitent treatment of * (globbing)
Date: Mon, 31 Jan 2011 21:51:42 +0000 (UTC)
User-agent: slrn/pre1.0.0-18 (Linux)

2011-01-31, 11:44(-05), Greg Wooledge:
> On Sat, Jan 29, 2011 at 12:58:56PM +0100, Pascal Wittmann wrote:
>>   But if I use the expression ".*" in bash, I would expect from the
>> behaviour of "*", that
>>   ".*" don't include the file "..". But the fact is, that it does in bash.
>
> This is done for compatibility with all the other shells.
[...]

All the other shells... but zsh and pdksh based ones (mksh,
posh...) and shells like ksh93 can be globally modified by
setting the FIGNORE environment variable (a bug and potential
security vulnerability if you ask me).

I agree with the OP that .* expanding "." and ".." is not
useful but I suspect it is required by POSIX.

-- 
Stephane


reply via email to

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