Re: rm -rf question

2001-05-24 Thread Peter Wemm
J Wunsch wrote: > Alexander Langer <[EMAIL PROTECTED]> wrote: > > > It's xargs job to workaround that: > > > > ls | xargs rm -rf > > rm -rf /home/gary/public_html/mrtg/david > > should have worked as well. It also removes the directory itself, > yes, but since it's then rm(1) that does the d

Re: rm -rf question

2001-05-24 Thread Ceri
On Thu, May 24, 2001 at 10:40:46AM +0200, J Wunsch said: > Alexander Langer <[EMAIL PROTECTED]> wrote: > > > ls | xargs rm -rf > > rm -rf /home/gary/public_html/mrtg/david If you're running as root, neither of those do the same thing as rm -rf /home/gary/public_html/mrtg/david/* What

Re: rm -rf question

2001-05-24 Thread J Wunsch
Alexander Langer <[EMAIL PROTECTED]> wrote: > It's xargs job to workaround that: > > ls | xargs rm -rf rm -rf /home/gary/public_html/mrtg/david should have worked as well. It also removes the directory itself, yes, but since it's then rm(1) that does the directory handling, there's no longer

Re: rm -rf question

2001-05-23 Thread Alexander Langer
Thus spake Will Andrews ([EMAIL PROTECTED]): > No. It's a safety feature to prevent your shell from using too much > memory to do the globbing you asked for (the "*"). This has nothing > whatsoever to do with rm(1). It's xargs job to workaround that: ls | xargs rm -rf Alex -- cat: /home/al

Re: rm -rf question

2001-05-23 Thread Will Andrews
On Wed, May 23, 2001 at 05:51:40AM -0500, Storms of Perfection wrote: > gary@trouble:~$ rm -rf /home/gary/public_html/mrtg/david/ > Display all 2275 possibilities? (y or n) > gary@trouble:~$ rm -rf /home/gary/public_html/mrtg/david/* > bash: /bin/rm: Argument list too long > > Is this a bug with

Re: rm -rf question

2001-05-23 Thread David Malone
On Wed, May 23, 2001 at 05:51:40AM -0500, Storms of Perfection wrote: > gary@trouble:~$ rm -rf /home/gary/public_html/mrtg/david/ > Display all 2275 possibilities? (y or n) > gary@trouble:~$ rm -rf /home/gary/public_html/mrtg/david/* > bash: /bin/rm: Argument list too long > > Is this a bug with

rm -rf question

2001-05-23 Thread Storms of Perfection
gary@trouble:~$ rm -rf /home/gary/public_html/mrtg/david/ Display all 2275 possibilities? (y or n) gary@trouble:~$ rm -rf /home/gary/public_html/mrtg/david/* bash: /bin/rm: Argument list too long Is this a bug with rm? I've never come accross this on -CURRENT or -STABLE for that matter.. To Un