Add/fix cross-references for expansions

This commit is contained in:
lePerdu 2019-01-31 08:31:48 -05:00
parent deda159536
commit a5f865a566
2 changed files with 5 additions and 4 deletions

View File

@ -63,7 +63,7 @@ is treated as a literal `\\`.
== Typed Expansions == Typed Expansions
Quoted and Balanced strings startings with `%` might have an optional Quoted and Balanced strings starting with `%` might have an optional
alphabetic *expansion type* between the `%` and their delimiter (which alphabetic *expansion type* between the `%` and their delimiter (which
is always a punctuation character). This *expansion type* defines how the is always a punctuation character). This *expansion type* defines how the
string content is going to be expanded. string content is going to be expanded.
@ -71,7 +71,6 @@ string content is going to be expanded.
- If the *expansion type* is empty, the string content is used verbatim. - If the *expansion type* is empty, the string content is used verbatim.
- If the *expansion type* is one of `sh`, `reg`, `opt`, `val` or `arg`, - If the *expansion type* is one of `sh`, `reg`, `opt`, `val` or `arg`,
The string is expanded according as described in The string is expanded as described in <<expansions#,`:doc expansions`>>
<<expansions#typed-expansions,`:doc expansion typed-expansions`>>
- For any other *expansion type* a parsing error is raised. - For any other *expansion type* a parsing error is raised.

View File

@ -36,7 +36,9 @@ by whitespace into a single argument or prevent expansions from expanding:
Expansions are processed when unquoted and anywhere inside double-quoted Expansions are processed when unquoted and anywhere inside double-quoted
strings, but not inside unquoted words, inside single-quoted strings, or strings, but not inside unquoted words, inside single-quoted strings, or
inside %-strings or other expansions. So: inside %-strings or other expansions (see
<<command-parsing#typed-expansions, `:doc command-parsing typed-expansions`>>
for full details). For example:
* `echo %val{session}` echoes the current session ID * `echo %val{session}` echoes the current session ID