doc: expand &| reference to full example (#10885)

* doc: expand &| reference to full example

* feedback
This commit is contained in:
Ambrose Bonnaire-Sergeant 2024-12-04 13:13:00 -06:00 committed by GitHub
parent 7b2cc9dca2
commit 3012020af3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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