Re: ksh history bug

2014-08-15 Thread Jason McIntyre
On Fri, Aug 15, 2014 at 09:31:36AM +0200, Alexander Hall wrote: > > On Thu, Aug 14, 2014 at 12:10:58PM -0400, Jared Yanovich wrote: > > > + If first and last are both omitted, the previous 16 commands shall > > be listed or the previous single command shall be edited (based on the > > -l opt

Re: ksh history bug

2014-08-15 Thread Alexander Hall
> On Thu, Aug 14, 2014 at 12:10:58PM -0400, Jared Yanovich wrote: > + If first and last are both omitted, the previous 16 commands shall > be listed or the previous single command shall be edited (based on the > -l option). > > that kind of suggests that the "fc -l" producing those "previous

Re: ksh history bug

2014-08-14 Thread Jason McIntyre
On Thu, Aug 14, 2014 at 12:10:58PM -0400, Jared Yanovich wrote: > On Wed, Aug 13, 2014 at 07:41:08PM +0100, Jason McIntyre wrote: > > > the only thing i have to compare it with is bash: > > By no means comprehensive but: > > these appear to not include the current command: > zsh >

Re: ksh history bug

2014-08-14 Thread Jared Yanovich
On Wed, Aug 13, 2014 at 07:41:08PM +0100, Jason McIntyre wrote: > the only thing i have to compare it with is bash: By no means comprehensive but: these appear to not include the current command: zsh FreeBSD ash these appear to include the current command: AT&T k

Re: ksh history bug

2014-08-13 Thread Remi Locherer
On Wed, Aug 13, 2014 at 07:41:08PM +0100, Jason McIntyre wrote: > hi! > > notice how ksh's history command (fc -l) does not list the last typed history > command: > > $ ls > $ date > Wed Aug 13 19:29:59 BST 2014 > $ history > 1 ls > 2 date > > the

ksh history bug

2014-08-13 Thread Jason McIntyre
hi! notice how ksh's history command (fc -l) does not list the last typed history command: $ ls $ date Wed Aug 13 19:29:59 BST 2014 $ history 1 ls 2 date the only thing i have to compare it with is bash: bash-4.3$ ls b