[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Issues with history substitution and its documentation
From: |
Chet Ramey |
Subject: |
Re: Issues with history substitution and its documentation |
Date: |
Mon, 18 Nov 2019 11:18:56 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 |
On 11/4/19 9:42 AM, Jim Monte wrote:
Related to the issues with the ? event designator, the %word designator
substitutes the *first* word matched by the ? event designator or nothing
if the match begins with a space. These details are not documented.
Thanks. The issue is that, unlike csh, bash allows substring matches to
span `words'. This leads to issues when the matching portion does not
begin on a word character. If the match begins on a non-word, how do you
substitute a word 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/
Re: Issues with history substitution and its documentation,
Chet Ramey <=
Re: Issues with history substitution and its documentation, Chet Ramey, 2019/11/18