Re: Add option to just print history, with no added timestamps or line numbers

2024-04-12 Thread Dan Jacobson
> "CR" == Chet Ramey writes: CR> On 3/24/24 11:39 PM, Lawrence Velázquez wrote: >> On Sun, Mar 24, 2024, at 11:01 PM, Dan Jacobson wrote: >>> P.S., "\t%s" seems to have an extra space squeezed between them with >>> bash: "\t %s", >>> unless perhaps the spec says that %s always starts with a sp

Re: Add option to just print history, with no added timestamps or line numbers

2024-03-25 Thread Chet Ramey
On 3/24/24 11:39 PM, Lawrence Velázquez wrote: On Sun, Mar 24, 2024, at 11:01 PM, Dan Jacobson wrote: P.S., "\t%s" seems to have an extra space squeezed between them with bash: "\t %s", unless perhaps the spec says that %s always starts with a space. The standard doesn't say that, so in native

Re: Add option to just print history, with no added timestamps or line numbers

2024-03-24 Thread Dan Jacobson
Hmm, so no matter POSIX mode or not, both will be dragging around that little piece of toilet paper stuck to their shoes (\t)... unless some new option is invented.

Re: Add option to just print history, with no added timestamps or line numbers

2024-03-24 Thread Lawrence Velázquez
On Sun, Mar 24, 2024, at 11:01 PM, Dan Jacobson wrote: > P.S., "\t%s" seems to have an extra space squeezed between them with > bash: "\t %s", > unless perhaps the spec says that %s always starts with a space. The standard doesn't say that, so in native mode bash's `fc' is indeed slightly nonconf

Re: Add option to just print history, with no added timestamps or line numbers

2024-03-24 Thread Dan Jacobson
How unfortunate. P.S., "\t%s" seems to have an extra space squeezed between them with bash: "\t %s", unless perhaps the spec says that %s always starts with a space.

Re: Add option to just print history, with no added timestamps or line numbers

2024-03-24 Thread Lawrence Velázquez
On Sun, Mar 24, 2024, at 8:54 PM, Dan Jacobson wrote: > Yes, it omits the line numbers. But leaves the "^I " separators! > > $ fc -l 999 1000|cat -vt > 999^I echo invite Nerbleson for dinner > 1000^I echo and Snordsworth too > $ fc -ln 999 1000|cat -vt > ^I echo invite Nerbleson for dinner > ^I ech

Re: Add option to just print history, with no added timestamps or line numbers

2024-03-24 Thread Dan Jacobson
> "MDK" == Martin D Kealey writes: MDK> How about « fc -ln » ? I like it! P.S., $ help fc -nomit line numbers when listing Yes, it omits the line numbers. But leaves the "^I " separators! $ fc -l 999 1000|cat -vt 999^I echo invite Nerbleson for dinner 1000^I echo and Snordsw

Re: Add option to just print history, with no added timestamps or line numbers

2024-03-24 Thread Martin D Kealey
Hi Dan How about « fc -ln » ? It might be helpful to have explicit cross-references between the help displays for «history» and «fc». -Martin On Sun, 24 Mar 2024 at 15:40, Dan Jacobson wrote: > $ help history > should mention how in the world one is supposed to just print the plain > history,

Re: Add option to just print history, with no added timestamps or line numbers

2024-03-23 Thread Lawrence Velázquez
On Sun, Mar 24, 2024, at 1:40 AM, Dan Jacobson wrote: > $ help history > should mention how in the world one is supposed to just print the plain > history, > without any line numbers or time stamps. fc -ln 1 -- vq

Add option to just print history, with no added timestamps or line numbers

2024-03-23 Thread Dan Jacobson
$ help history should mention how in the world one is supposed to just print the plain history, without any line numbers or time stamps. You might say, "Just strip it off with perl or sed." Well, fine. Then mention that in help history. Currently one needs massive superfund environmental clean-u