How can I work around the bash shell limitation of 'Argument list too long' when using filename wildcards that match a ton of files in /tmp/?
[my-centos4 tmp] rm -rf /tmp/myLocalFiles* bash: /bin/rm: Argument list too long
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
You can use Wines
wine cmd del "Z:\tmp\myLocalFiles*" exit
Shell expansion works great but it has some caveats. The Windows convention never suffers from these problems, but places the duty on the programmer. This is probably better, since the writer of the shell cannot know how any program expects its input data.