mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08: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
|
@ -34,6 +34,6 @@ Examples
|
|||
>_ set str foo
|
||||
>_ string length -q $str; echo $status
|
||||
0
|
||||
# Equivalent to test -n $str
|
||||
# Equivalent to test -n "$str"
|
||||
|
||||
.. END EXAMPLES
|
||||
|
|
Loading…
Reference in New Issue
Block a user