bug-bash
[Top][All Lists]
Advanced

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

Re: ! history expansion occurs within arithmetic substitutions


From: Chet Ramey
Subject: Re: ! history expansion occurs within arithmetic substitutions
Date: Mon, 14 Aug 2023 11:41:33 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 8/11/23 4:19 PM, Martin D Kealey wrote:
On Sat, 12 Aug 2023, 02:29 Dale R. Worley, <worley@alum.mit.edu> wrote:

… The line is broken into  words in the same fashion as when reading
input, so that several metacharacter-separated words surrounded by quotes
are considered one word. …


I think it would be helpful to start this sentence with "The selected
line…", to differentiate from the line just entered containing a "!".

It's both, actually. The line being expanded is broken into words to bound
the history expansion, since a history expansion doesn't extend to multiple
words, and the event is broken into words for the rest of the process.


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




reply via email to

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