diff options
| author | hhvn <dev@hhvn.uk> | 2022-01-02 13:36:00 +0000 |
|---|---|---|
| committer | hhvn <dev@hhvn.uk> | 2022-01-02 13:36:00 +0000 |
| commit | ade87e07baf2b5315b9e56dadfb26117cc567a95 (patch) | |
| tree | ab5b1a4a387c4d160fd380fccfc3b699ca909d98 /rc.1 | |
| parent | 21016570f4b42a0814134c43e8e27c388856ee5e (diff) | |
parse.y rc.1: support ifs-list with single backtick
Diffstat (limited to 'rc.1')
| -rw-r--r-- | rc.1 | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1220,7 +1220,7 @@ In order to override the value of for a single backquote substitution, use: .Ds -.Cr "\`\` (ifs-list) { command }" +.Cr "\`(ifs-list){ command }" .De .PP .Cr $ifs @@ -1228,7 +1228,7 @@ will be temporarily ignored and the command's output will be split as specified the list following the double backquote. For example: .Ds -.Cr "\`\` ($nl :) {cat /etc/passwd}" +.Cr "\`($nl :){cat /etc/passwd}" .De .PP splits up @@ -1244,7 +1244,7 @@ to contain the newline character, and to contain the tab character. Thus, if you want to process everything in the current directory, but in a random order, you could use: .Ds -.Cr "for (f in \`\` $nl {ls | shuf}) { ... process $f }" +.Cr "for (f in \`$nl{ls | shuf}) { ... process $f }" .De .PP This will correctly handle filenames that contain spaces. |