bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Chet Ramey
Subject: Re: Add option to just print history, with no added timestamps or line numbers
Date: Mon, 25 Mar 2024 09:38:25 -0400
User-agent: Mozilla Thunderbird

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 mode bash's `fc' is
indeed slightly nonconformant, but in POSIX mode it does omit the
extra space.

That character is a `*' if the line has been modified (has an existing
set of edits to undo) and ` ' if not. This is what `history' does.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]