[SM-Commit] GIT changes to master grimoire by Vlad Glagolev (836934cfe1960010a5696586f480dbda2acfa869)
ladislav.hagara at unob.cz
Thu Aug 28 14:01:46 EDT 2008
>> + [ -d /tmp ] && shopt dotglob && rm -rf /tmp/*
> Are you sure? Just testing it (new feature for me) and seems "shopt
> dotglob" only shows setting (on/off).
> If you want to remove all files (.a, ...) the GLOBIGNORE must be set.
> Just "rm -rf /tmp/* /tmp/.*" is not OK?
Just reading next mail, seems it is OK now. :-)
- [ -d /tmp ] && shopt dotglob && rm -rf /tmp/*
+ [ -d /tmp ] && shopt -s dotglob && rm -rf /tmp/* && shopt -u dotglob
More information about the SM-Commit