-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
On 02/28/2011 05:15 PM, Patrick O'Callaghan wrote:
The Shell will not normally expand * to a name beginning with ".". Try it:
$ echo *
See "info bash":
When a pattern is used for filename expansion, the character `.' at the start of a filename or immediately following a slash must be matched explicitly, unless the shell option `dotglob' is set.
poc
I would say this all depends on the application being invoked and would still say it is bad to just use * as opposed to say ./*
I can't count the number of people Ive seen do things like rm -rf * in a directory and it recursively started working on / and /bin etc...