csh history bug

Roland McGrath rk9005 at cca.ucsf.edu
Sun Apr 24 06:10:12 AEST 1988


["csh history bug"] - chris at mimsy.UUCP (Chris Torek):
) The history number `-1000' should give a large hint.  If you look
) in /usr/src/bin/csh/sh.lex.c you will find where csh enters substitution
) events as number -1000.  The idea is that since
) 
) -most people don't set history to a big number,
) 
) the negative event will be discarded from the history list since
) it occurred over 1000 commands ago.

Sorry, I don't have source access.  This should, of course, be fixed to
set the event number to INT_MIN so that even with history=INT_MAX, it
will work correctly.

) -Aside: Can anyone with source access tell me what type is used for the
) -value of `history', so I can make it 32767 or (2^31) - 1, or whatever?
) `int', of course.  The variable itself is a string, but it is converted
) to an integer whenever needed (once per command!).

Ack!  I should have expected should stupidity from Unix!
Oh well.  Maybe I'll fix it when Berkeley declares csh free.

) In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
) Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.bugs.4bsd.ucb-fixes mailing list