mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-04-01 01:15:14 +08:00
Document that echo takes --
[ci skip]
This commit is contained in:
parent
c148b6eff1
commit
c9d2c99a98
@ -25,6 +25,8 @@ The following options are available:
|
||||
|
||||
- ``-e``, Enable interpretation of backslash escapes
|
||||
|
||||
Unlike other shells, this echo accepts ``--`` to signal the end of the options.
|
||||
|
||||
Escape Sequences
|
||||
----------------
|
||||
|
||||
@ -59,15 +61,15 @@ Example
|
||||
|
||||
::
|
||||
|
||||
echo 'Hello World'
|
||||
> echo 'Hello World'
|
||||
Hello World
|
||||
|
||||
Print hello world to stdout
|
||||
> echo -e 'Top\\nBottom'
|
||||
Top
|
||||
Bottom
|
||||
|
||||
::
|
||||
|
||||
echo -e 'Top\\nBottom'
|
||||
|
||||
Print Top and Bottom on separate lines, using an escape sequence
|
||||
> echo -- -n
|
||||
-n
|
||||
|
||||
See Also
|
||||
--------
|
||||
|
Loading…
x
Reference in New Issue
Block a user