mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 01:48:08 +08:00
Correct unescaped backslash in \n in string.txt
This commit is contained in:
parent
9c6bd8b1b4
commit
a8a9a823f2
@ -261,10 +261,10 @@ foo2
|
||||
<outp>42</outp>
|
||||
|
||||
>_ # 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)
|
||||
>_ string escape $foo[1]
|
||||
<outp>alpha\ngamma</outp>
|
||||
<outp>alpha\\ngamma</outp>
|
||||
\endfish
|
||||
|
||||
\subsection string-example-replace-literal Replace Literal Examples
|
||||
|
Loading…
x
Reference in New Issue
Block a user