mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-19 05:13:44 +08:00
doc: expand &| reference to full example (#10885)
* doc: expand &| reference to full example * feedback
This commit is contained in:
parent
7b2cc9dca2
commit
3012020af3
|
@ -266,8 +266,9 @@ Consider this helper function::
|
|||
Now let's see a few cases::
|
||||
|
||||
# Redirect both stderr and stdout to less
|
||||
# (can also be spelt as `&|`)
|
||||
print 2>&1 | less
|
||||
# or
|
||||
print &| less
|
||||
|
||||
# Show the "out" on stderr, silence the "err"
|
||||
print >&2 2>/dev/null
|
||||
|
|
Loading…
Reference in New Issue
Block a user