Re: rm -rf .* alternatives (was: Re: I broke gnome2 *snff*)

2003-10-27 Thread Georg Nikodym
On Sun, 26 Oct 2003 14:10:01 + Karsten M. Self [EMAIL PROTECTED] wrote: on Fri, Oct 24, 2003 at 03:28:36PM +0100, Colin Watson ([EMAIL PROTECTED]) wrote: On Fri, Oct 24, 2003 at 11:36:25PM +0930, David Purton wrote: Sadly no, I neglected to say that I could not get things to work

Re: rm -rf .* alternatives

2003-10-27 Thread John Hasler
Colin Watson writes: Just in case other people try this, 'rm -rf .*' is VERY DANGEROUS. '.*' expands to include '.' and '..', and if you happen to have privileges to write to the parent directory then you'll end up removing all directories *next* to your current directory as well! That was

trimming posts: was: Re: rm -rf .* alternatives

2003-10-27 Thread Paul Scott
Kirk Strauser wrote: At 2003-10-26T18:46:05Z, David Jardine [EMAIL PROTECTED] writes: rm -r `ls` do the trick? No; it wouldn't list files starting with '.'. That whole line of experimentation also fails on any filename with a space in it. Thanks for trimming that so well! I wonder how

rm -rf .* alternatives (was: Re: I broke gnome2 *snff*)

2003-10-26 Thread Karsten M. Self
on Fri, Oct 24, 2003 at 03:28:36PM +0100, Colin Watson ([EMAIL PROTECTED]) wrote: On Fri, Oct 24, 2003 at 11:36:25PM +0930, David Purton wrote: Sadly no, I neglected to say that I could not get things to work even using a test account and doing an rm -rf .* in $HOME. Just in case other

Re: rm -rf .* alternatives (was: Re: I broke gnome2 *snff*)

2003-10-26 Thread Jason Lunz
[EMAIL PROTECTED] said: Other tips? use zsh: [orr](0) % zsh [orr](0) % touch .foo [orr](0) % echo .* .foo [orr](0) % bash bash-2.05b$ echo .* . .. .foo Jason -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe.

Re: rm -rf .* alternatives (was: Re: I broke gnome2 *snff*)

2003-10-26 Thread David Jardine
On Sun, Oct 26, 2003 at 10:12:18AM -0500, Bijan Soleymani wrote: On Sun, Oct 26, 2003 at 02:10:01PM +, Karsten M. Self wrote: on Fri, Oct 24, 2003 at 03:28:36PM +0100, Colin Watson ([EMAIL PROTECTED]) wrote: On Fri, Oct 24, 2003 at 11:36:25PM +0930, David Purton wrote: Sadly no, I

Re: rm -rf .* alternatives

2003-10-26 Thread Kirk Strauser
At 2003-10-26T18:46:05Z, David Jardine [EMAIL PROTECTED] writes: Then wouldn't rm -r `ls` do the trick? No; it wouldn't list files starting with '.'. That whole line of experimentation also fails on any filename with a space in it. -- Kirk Strauser In Googlis non est, ergo non est.

Re: rm -rf .* alternatives

2003-10-26 Thread Kirk Strauser
At 2003-10-26T15:12:18Z, Bijan Soleymani [EMAIL PROTECTED] writes: You could always do: rm -r `ls -A` If you have good backups, consider the ramifications of: $ touch 'a .. b' $ rm -r `ls -A` -- Kirk Strauser In Googlis non est, ergo non est. pgp0.pgp Description: PGP signature

Re: rm -rf .* alternatives

2003-10-26 Thread Bijan Soleymani
On Sun, Oct 26, 2003 at 01:29:44PM -0600, Kirk Strauser wrote: At 2003-10-26T15:12:18Z, Bijan Soleymani [EMAIL PROTECTED] writes: You could always do: rm -r `ls -A` If you have good backups, consider the ramifications of: $ touch 'a .. b' $ rm -r `ls -A` Oops... My bad...

Re: rm -rf .* alternatives (was: Re: I broke gnome2 *snff*)

2003-10-26 Thread Bijan Soleymani
On Sun, Oct 26, 2003 at 02:10:01PM +, Karsten M. Self wrote: on Fri, Oct 24, 2003 at 03:28:36PM +0100, Colin Watson ([EMAIL PROTECTED]) wrote: On Fri, Oct 24, 2003 at 11:36:25PM +0930, David Purton wrote: Sadly no, I neglected to say that I could not get things to work even using a

Re: rm -rf .* alternatives

2003-10-26 Thread Travis Crump
Jason Lunz wrote: [EMAIL PROTECTED] said: Other tips? use zsh: [orr](0) % zsh [orr](0) % touch .foo [orr](0) % echo .* .foo [orr](0) % bash bash-2.05b$ echo .* . .. .foo Jason or just use a recent version of coreutils[5.0-5 tested] $rm

Re: rm -rf .* alternatives (was: Re: I broke gnome2 *snff*)

2003-10-26 Thread Bijan Soleymani
On Sun, Oct 26, 2003 at 07:46:05PM +0100, David Jardine wrote: On Sun, Oct 26, 2003 at 10:12:18AM -0500, Bijan Soleymani wrote: On Sun, Oct 26, 2003 at 02:10:01PM +, Karsten M. Self wrote: on Fri, Oct 24, 2003 at 03:28:36PM +0100, Colin Watson ([EMAIL PROTECTED]) wrote: On Fri, Oct

Re: rm -rf .* alternatives

2003-10-26 Thread Isaac To
Karsten == Karsten M Self [EMAIL PROTECTED] writes: Karsten on Fri, Oct 24, 2003 at 03:28:36PM +0100, Colin Watson Karsten ([EMAIL PROTECTED]) wrote: On Fri, Oct 24, 2003 at 11:36:25PM +0930, David Purton wrote: Sadly no, I neglected to say that I could not get things to work