Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15602 > unrolled thread

Re: Issues with history substitution and its documentation

Started byChet Ramey <chet.ramey@case.edu>
First post2019-11-18 10:39 -0500
Last post2019-11-18 10:39 -0500
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Issues with history substitution and its documentation Chet Ramey <chet.ramey@case.edu> - 2019-11-18 10:39 -0500

#15602 — Re: Issues with history substitution and its documentation

FromChet Ramey <chet.ramey@case.edu>
Date2019-11-18 10:39 -0500
SubjectRe: Issues with history substitution and its documentation
Message-ID<mailman.1848.1574091593.13325.bug-bash@gnu.org>
On 10/3/19 6:19 PM, Jim Monte wrote:

> 
> =============================================================================
> Documentation of the :h and :t modifiers in section 9.3.3 is incomplete.
> :h removes the last / and everything after it if a / is present. Otherwise
> it does nothing.
> 
> :t removes everything before and including the last / if one is present.
> Otherwise it does nothing.

I'm comfortable with the existing language, which is the same as the csh
documentation.

> =============================================================================
> Documentation of the :r and :e modifiers is incomplete.
> :r removes the last ".suffix" and everything after it, if a ".suffix" is
> present. Otherwise it does nothing.
> :e leaves the last ".suffix" and everything after it, if a ".suffix" is
> present. Otherwise it does nothing.

I'm comfortable with the existing language.


> =============================================================================
> Documentation of :q and :x is incomplete.
> If :q and :x are repeated, the last specification is taken.

Yes, I'll note that q and x are mutually exclusive, last one wins.

=============================================================================
> Finally, documentation of G should mention that it can be used with both :s
> and &.

Good catch.

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

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web