Make word splitting description more precise
This commit is contained in:
parent
a7320a01aa
commit
db4bb6788d
|
@ -53,11 +53,12 @@ inside %-strings or other expansions. So:
|
||||||
Like "variable expansion" and "command substitution" in shell programming,
|
Like "variable expansion" and "command substitution" in shell programming,
|
||||||
Kakoune expansions can expand to multiple "words" - that is, separate
|
Kakoune expansions can expand to multiple "words" - that is, separate
|
||||||
arguments on the resulting command-line. However, unlike shell programming,
|
arguments on the resulting command-line. However, unlike shell programming,
|
||||||
Kakoune expansions cannot _accidentally_ expand to multiple words, even if
|
Kakoune expansions cannot _accidentally_ expand to multiple words because they
|
||||||
the expansion contains whitespace or other special characters: only list types
|
contain whitespace or other special characters. Only expansions which
|
||||||
can expand to multiple arguments. While in shell-programming it's good practice
|
semantically contain a list of values (list-type options, registers, selections,
|
||||||
to always wrap expansions in double-quotes, in Kakoune it's perfectly safe to
|
etc.) expand to multiple arguments. While in shell-programming it's good
|
||||||
leave expansions unquoted.
|
practice to always wrap expansions in double-quotes, in Kakoune it's perfectly
|
||||||
|
safe to leave expansions unquoted.
|
||||||
|
|
||||||
== Argument expansions
|
== Argument expansions
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user