mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Correct unescaped backslash in \n in string.txt
This commit is contained in:
parent
9c6bd8b1b4
commit
a8a9a823f2
1 changed files with 2 additions and 2 deletions
|
@ -261,10 +261,10 @@ foo2
|
||||||
<outp>42</outp>
|
<outp>42</outp>
|
||||||
|
|
||||||
>_ # Sort a list of elements which may contain newlines
|
>_ # Sort a list of elements which may contain newlines
|
||||||
>_ set foo beta alpha\ngamma
|
>_ set foo beta alpha\\ngamma
|
||||||
>_ set foo (string join0 $foo | sort -z | string split0)
|
>_ set foo (string join0 $foo | sort -z | string split0)
|
||||||
>_ string escape $foo[1]
|
>_ string escape $foo[1]
|
||||||
<outp>alpha\ngamma</outp>
|
<outp>alpha\\ngamma</outp>
|
||||||
\endfish
|
\endfish
|
||||||
|
|
||||||
\subsection string-example-replace-literal Replace Literal Examples
|
\subsection string-example-replace-literal Replace Literal Examples
|
||||||
|
|
Loading…
Reference in a new issue