[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: |
Lawrence Velázquez |
Subject: |
Re: Add option to just print history, with no added timestamps or line numbers |
Date: |
Sun, 24 Mar 2024 23:39:25 -0400 |
User-agent: |
Cyrus-JMAP/3.11.0-alpha0-332-gdeb4194079-fm-20240319.002-gdeb41940 |
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.
$ set +o posix
$ fc -ln -1 | od -t c -t x1
0000000 \t s e t + o p o s i x \n
09 20 73 65 74 20 2b 6f 20 70 6f 73 69 78 0a
0000017
$ set -o posix
$ fc -ln -1 | od -t c -t x1
0000000 \t s e t - o p o s i x \n
09 73 65 74 20 2d 6f 20 70 6f 73 69 78 0a
0000016
--
vq
- Add option to just print history, with no added timestamps or line numbers, Dan Jacobson, 2024/03/24
- Re: Add option to just print history, with no added timestamps or line numbers, Lawrence Velázquez, 2024/03/24
- Re: Add option to just print history, with no added timestamps or line numbers, Martin D Kealey, 2024/03/24
- Re: Add option to just print history, with no added timestamps or line numbers, Dan Jacobson, 2024/03/24
- Re: Add option to just print history, with no added timestamps or line numbers, Lawrence Velázquez, 2024/03/24
- Re: Add option to just print history, with no added timestamps or line numbers, Dan Jacobson, 2024/03/24
- Re: Add option to just print history, with no added timestamps or line numbers,
Lawrence Velázquez <=
- Re: Add option to just print history, with no added timestamps or line numbers, Dan Jacobson, 2024/03/25
- Re: Add option to just print history, with no added timestamps or line numbers, Chet Ramey, 2024/03/25