mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-14 05:31:14 -03:00
docs: Use \ instead of \\ in examples (#7286)
Instead of informing the bell character (hex 07), the example was using
an escaped \ followed by x07.
$ echo \\x07
\x07
$ echo \x07
$ echo \x07 | od -a
0000000 bel nl
0000002
$
* docs: Use \u instead of \\u
Instead of informing the Unicode character 慡, this example was using an
escaped \ followed by u6161.
$ echo \\u6161
\u6161
$ echo \u6161
慡
Before:
$ string escape --style=var 'a1 b2'\\u6161 | string unescape --style=var
a1 b2\u6161
Now:
$ string escape --style=var 'a1 b2'\u6161 | string unescape --style=var
a1 b2慡
This commit is contained in:
@@ -37,11 +37,11 @@ Examples
|
||||
|
||||
::
|
||||
|
||||
>_ echo \\x07 | string escape
|
||||
cg
|
||||
>_ echo \x07 | string escape
|
||||
\cg
|
||||
|
||||
>_ string escape --style=var 'a1 b2'\\u6161
|
||||
a1_20b2__c_E6_85_A1
|
||||
>_ string escape --style=var 'a1 b2'\u6161
|
||||
a1_20_b2_E6_85_A1_
|
||||
|
||||
|
||||
.. END EXAMPLES
|
||||
|
||||
Reference in New Issue
Block a user