bug-bash
[Top][All Lists]
Advanced

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

Re: Command saved incorrectly in history.


From: Chet Ramey
Subject: Re: Command saved incorrectly in history.
Date: Mon, 31 Aug 2026 09:06:32 -0400
User-agent: Mozilla Thunderbird

On 8/30/26 7:44 PM, Martin D Kealey wrote:
Similarly, newline+«)» gets recorded as «; )», though - somewhat surprisingly - that's actually accepted as input.

Not surprising. The `)' is an operator that ends the subshell (or
whatever) command containing the command terminated by the `;'.
(The Shell seems a bit haphazard in where an empty command is acceptable.

There's no empty command there.

--
``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]