Re: Duplicate accounts?

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 02/28/2011 06:54 PM, Steve Ellis wrote:
> On 2/28/2011 3:23 PM, Larry Brower wrote:
>>
>> 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...
> Not to be a pest, but if you worry about '*' expanding to include 
> dotfiles, then why do you think that './*' is safe?  Furthermore, '*' 
> expansion is handled by the shell, not the application--in other words, 
> dotglob rules the day.
> 
> The '*' there will just as well include dotfiles (i.e., it won't unless 
> dotglob is set as another poster indicated).  I definitely agree that 
> caution is warranted when using '*' in any command that can do horrible 
> things to your files, especially for things like 'rm -rf', but don't 
> travel under the misconception that './*' is going to save your 
> bacon--because it won't.
> 
> -se


./ explicitly specifies the CWD so what is your basis for saying it
wont? While I will admit there could be other factors at play for rm
recursively working on the systems Ive seen it happen on I can't say
with certainty that there was as files like /etc/profile and /etc/bashrc
were already removed by the time I had to work on the issue.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCgAGBQJNbFOIAAoJEBgaXYoZ++87XkAIAIzlq2qo6+Y2gG+DVOd0vXfa
g9dMYgqhn7Z6UOkbFoLVKY7Jb/fksivp04Np4Y2+psksqrL+6ZqWjCDZVQ4ukwU0
zHFQDpEg4Tw9oXL2qHPVK407XH7ibIp2wKU5nql7X2y3F3qC6ji0l2TzclR18cRm
lj/gF+YFUtgEajWf2qgmv9cnCZuRJA5qpL9vwml/DPiEo4D2Bz/hfV9Bl2vvQypY
yc+0nhJJZKmG/mnPAnamluU5DnvGr99z2sk01o6zff1J9fznI/pMXC+9gxZWb12W
MLVynsp9IHD0Ir63xCsBLXUnJ2NJmvGErcsltQnOmwoppUKT/PyIYwVaFylzNJA=
=E6zh
-----END PGP SIGNATURE-----
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux