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:
Johannes Altmanninger 2020-09-27 21:04:19 +02:00
parent 92511b09c4
commit 30f821c8f4

View File

@ -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