Skip to content

Commit

Permalink
Add new backquote caret flattening to man page
Browse files Browse the repository at this point in the history
  • Loading branch information
wryun committed Mar 2, 2022
1 parent 3c3a85a commit 1d18f7f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions doc/es.1
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,16 @@ use:
.Ds
.Cr "echo $^path."
.De
.PP
To flatten the output of a command, use
.Ds
.Ci `\^{cmd args}
.De
.PP
See the section entitled
.B "Command Substitution"
for more information.

.SS "Wildcard Expansion"
.I Es
expands wildcards in filenames if possible.
Expand Down Expand Up @@ -867,6 +877,11 @@ For example:
splits up
.Cr /etc/passwd
into fields.
.PP
A caret
.Rc ( ^ )
can be added after the backquote to flatten the list output back into a single
element (using space as the separator).
.SS "Return Values"
The return value of a command is obtained with the construct
.Ds
Expand Down

0 comments on commit 1d18f7f

Please sign in to comment.