tcsh little bug

Simon 'corecode' Schubert corecode at
Wed Sep 17 11:14:16 PDT 2003

I found a bug (I think) in tcsh:

add this line to your .chsh:
set savehist = "1000 merge"

then spawn another tcsh
and exit it (via exit, or, if you feel crazy, via ^D)

produces (at least here):
exit: Badly formed number

you can stopp the mess by entering "exit" once again

This is triggered by some code that calls stderror() as it encounters
that the first word contains not only digits.
stderror() then notices that the shell is interactive and restart()s.
the loop begins...

oh yes, now I know that it should be
set savehist = (1000 merge)


\ /
 \     ASCII Ribbon Campaign
/ \  Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00000.pgp
Type: application/octet-stream
Size: 189 bytes
Desc: "Description: PGP signature"
URL: <>

More information about the Bugs mailing list