Re: Duplicate accounts?

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

 



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
-- 
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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux