[Bug 105543] Re: /bin/rm refuses to remove files

Brian Murray brian at ubuntu.com
Mon Nov 4 19:08:36 UTC 2013


It's not that "rm -f directory/*" is too long, rather that when the * is
expanded to "rm -f directory/filename directory/filename ...." the
command becomes too long.

** Changed in: bash (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/105543

Title:
  /bin/rm refuses to remove files

Status in “bash” package in Ubuntu:
  Invalid

Bug description:
  I'm running Ubuntu Edgy
  When I'm trying to remove many files from a folder with the command
     rm test_displacement/*.png
  it says 
     bash: /bin/rm: Argument list too long

  Nevertheless, the command
     rm test_displacement/1641.png
  works fine

  also, the following works:
  cd test_displacement; rm *.png

  In the folder test_displacement there are 5002 files and 5001 of them are of the form *.png
  The file system is ext2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/105543/+subscriptions



More information about the foundations-bugs mailing list