Duplicate accounts?
Larry Brower
larry at maxqe.com
Mon Feb 28 23:23:45 UTC 2011
-----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...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBCgAGBQJNbC6BAAoJEBgaXYoZ++87K7EH/jQPzxF5a2hKwOamptZnuAb2
BNd0Tm7rUUvNItkMVjhA032WoYO75Atftmh8dn0kVmD4Ha9UvQSTFRYszWh6NdpM
nZ+vGaNIe0O3OvH5ASK55f+sd+6s0sKVLT7QXykixEaiq1h4CUhox03LD7OfhABr
XpgQK/RL3Ca3OlfL4WyeAMC2Hk7hG6WOvVWlJBt523KS21/SXOp3QUgq2fIh05Tl
oWbcPwChPxeGJPKSpvpbsvAVS6i1+F+ZQyYC4IoxxglULBzJa5eBdez2ZBoTpteJ
h9oNuslNcz+SN6ha5uswixJhHBnqXsJdD04HM8dpwQMF68ZMPPEu5JjMk7nBxSc=
=plTa
-----END PGP SIGNATURE-----
More information about the users
mailing list