Re: [PATCH] shell: Enable fnmatch/glob by default

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

 



René Scharfe <l.s.r@xxxxxx> wrote:
> Hello,
> 
> on Debian testing dash eats trailing slashes of parameters that happen
> to be regular files when expanding "$@".  Example:
> 
>   $ rm -f foo bar
>   $ touch foo
>   $ dash -c 'echo "$0" "$@"' baz foo/ bar/ ./
>   baz foo bar/ ./

In fact you just have to do

	dash -c 'echo bar\/'

This is a bug in glob(3).  It's stripping the slash.

I guess we'll just have to disable glob again.

Thanks,
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux