-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Tim Waugh on 1/16/2007 5:45 AM: > What is the intended behaviour for this sort of thing?:
Infinite recursion, within the limits of your stack. > > $ cat <<"EOF" >trouble > hello () > { > pwd > } > alias pwd="hello" > EOF > The behaviour I've observed with bash-3.2 and several earlier releases > is that bash consumes all available memory and then crashes. And why not? It's the same as doing this in C: int foo() { return foo(); } Bash can't protect you from yourself (or put differently, the halting problem is undecidable). - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFrNRQ84KuGfSFAYARAsIxAJ9isSE1++l/vXvEzM0WBN0AbvkU2wCfWuPP k7aE8j9sBQWzNZsqhD9mfRc= =6ioK -----END PGP SIGNATURE----- _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash