DragonFly BSD
DragonFly bugs List (threaded) for 2003-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

tcsh little bug


From: Simon 'corecode' Schubert <corecode@xxxxxxxxxxxx>
Date: Wed, 17 Sep 2003 20:14:16 +0200

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
[repeating...]

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)

cheers
  simon

-- 
/"\   http://corecode.ath.cx/#donate
\ /
 \     ASCII Ribbon Campaign
/ \  Against HTML Mail and News

Attachment: pgp00000.pgp
Description: PGP signature



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]