diff options
| author | tjg <tjg> | 2002-05-22 13:23:59 +0000 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-05-16 21:23:22 +0100 |
| commit | b241fc272dde1a99ca058d90bed8a0de166bfb88 (patch) | |
| tree | 6331ce3ceb570fbca76a58738e41acdb5c0b509c /history.1 | |
| parent | e9d74072f34b43258aa10e45d35389fc52a9f042 (diff) | |
Feature: "stuttering" colons for multiple replacements in the
history programs (thanks Callum Gibson).
Diffstat (limited to 'history.1')
| -rw-r--r-- | history.1 | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -176,13 +176,14 @@ matched before a command is selected. Substitutions may also be specified on the command line. These have the syntax: .Ds -.Ic old : new +.Ic old :[:...] new .De .PP (Note that the .I old pattern is used as a search-limiting pattern also.) -Substitutions happen on the first match. +Substitutions happen from left to right and are repeated according to the +number of colons specified. .PP Finally, if the program was invoked as .RI `` -- '' @@ -241,3 +242,13 @@ reinterpretation: .Cr " eval $comm" .Cr " }" .Cr "}" +.De +.PP +Stuttering the `:' in a substitution allows things like: +.Ds +; prog 1 2 3 abc > /very/long/path/abc.out +etc. +- prog abc::xyz +prog 1 2 3 xyz > /very/long/path/xyz.out +; +.De |