Bash: “I Can’t Eat Another Byte”

Gravatar
root@server:/dir/ # ls | wc -l

1060731

root@server:/dir/ # for i in *; do rm -v $i done; done

me@home:~/ #

HUH?

Turns out that bash just couldn’t eat another byte, and next time I logged in I saw this: “bash[5469]: segfault at 0000007fbf7ffff8 rip 00000000004749bf rsp 0000007fbf7fffe0 error 6“… Impressive :)


Posted on : Sep 13 2007
Posted under Random Thoughts, cli, funny stuff, linux |

2 People have left comments on this post

Sep 13, 2007 - 10:09:08
Gravatar  Danny Howard said:

Your bash is broken. In the old days we accepted limitation on our shell’s globs and piped this sort of thing through xargs.

-danny

Sep 13, 2007 - 11:09:11
Gravatar  apokalyptik said:

:) I eneded up just rm -r’ing the directory, since it wasnt needed anyways