[gnu.bash.bug] minor inconsistency with history

roy@sts.sts.COM (11/30/89)

This inconsistency was found in Bash 1.04 on a Sun3 running SunOS
4.0.3.  According to the 'help' command, the 'history' built-in has
the following syntax: history [n] [ [ -w -r ] FILENAME ].  This
implies that it is possible to have a history command such as 'history
40 -w hist_out' write out the last 40 lines of history to 'hist_out'.
But, here's what happens:

bash$ history 40 -w hist_out
history: extra arguments

Of course, the work-around is to simply do 'history 40 >hist_out'
instead. (Would 'history 40 <hist_in' make sense then?)

Roy Bixler
roy@sts.COM