mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
Fix example in string length docs
Technically the equivalence would be something like string length -q $str test -n (string join \n -- $str | string collect) To handle when str has multiple empty strings; but quoting is easier to remember and enough for most practical purposes.
This commit is contained in:
parent
92511b09c4
commit
30f821c8f4
1 changed files with 1 additions and 1 deletions
|
@ -34,6 +34,6 @@ Examples
|
||||||
>_ set str foo
|
>_ set str foo
|
||||||
>_ string length -q $str; echo $status
|
>_ string length -q $str; echo $status
|
||||||
0
|
0
|
||||||
# Equivalent to test -n $str
|
# Equivalent to test -n "$str"
|
||||||
|
|
||||||
.. END EXAMPLES
|
.. END EXAMPLES
|
||||||
|
|
Loading…
Reference in a new issue