On Wed, 31 Dec 2008, Vincent Chapman wrote:
I understand, but there are still incosistancies in the unix world of
shells. Try this and you'll understand how one(I) could make this
mistake.
$ sudo bash echo .*
. .. .hidden_files
in zsh
$ sudo zsh echo .*
.hidden_files
This output is presumably fake, but I see your point.
zsh would not have accended into the parent directories. Bash will.
zsh in a certain configuration will elide . and .. from the expansion of
".*". bash will also, in a certain configuration, elide . and .. -
please see the docs for "dotglob" and "GLOBIGNORE".
A shell behaving in accordance with POSIX will follow the spec as to the
expansion of ".*" and "*".
Cheers,
Phil
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils