🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #787

minor inconsistency with history

#787
From: roy
Date: Thu, 30 Nov 1989 07:14
16 lines
917 bytes
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
Technical Details
Message-ID: <278200006@sts>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!apple!claris!sts!sts!roy

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!apple!claris!sts!sts!roy
From: roy@sts.sts.COM
Newsgroups: gnu.bash.bug
Subject: minor inconsistency with history
Message-ID: <278200006@sts>
Date: 30 Nov 89 07:14:10 GMT
Lines: 16
Nf-ID: #N:sts:278200006:000:567
Nf-From: sts.sts.COM!roy    Nov 29 22:33:00 1989