Skip to content

Commit 1d18f7f

Browse files
committed
Add new backquote caret flattening to man page
1 parent 3c3a85a commit 1d18f7f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

doc/es.1

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,16 @@ use:
634634
.Ds
635635
.Cr "echo $^path."
636636
.De
637+
.PP
638+
To flatten the output of a command, use
639+
.Ds
640+
.Ci `\^{cmd args}
641+
.De
642+
.PP
643+
See the section entitled
644+
.B "Command Substitution"
645+
for more information.
646+
637647
.SS "Wildcard Expansion"
638648
.I Es
639649
expands wildcards in filenames if possible.
@@ -867,6 +877,11 @@ For example:
867877
splits up
868878
.Cr /etc/passwd
869879
into fields.
880+
.PP
881+
A caret
882+
.Rc ( ^ )
883+
can be added after the backquote to flatten the list output back into a single
884+
element (using space as the separator).
870885
.SS "Return Values"
871886
The return value of a command is obtained with the construct
872887
.Ds

0 commit comments

Comments
 (0)