aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2025-07-16 09:41:45 +1000
committerSteve Bennett <steveb@workware.net.au>2025-07-16 09:41:45 +1000
commitcd31c05cabd79aa1430213c7b9b240f245e6b773 (patch)
tree4b6c58a27a42c8d5453939b62072bae8d0861c34
parentf8bf4be40410df762feaeba5abaed29ca4c7ef99 (diff)
downloadjimtcl-master.zip
jimtcl-master.tar.gz
jimtcl-master.tar.bz2
docs: document subst with $(...)HEADmaster
Fixes: #318 Signed-off-by: Steve Bennett <steveb@workware.net.au>
-rw-r--r--jim_tcl.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/jim_tcl.txt b/jim_tcl.txt
index 4d48fef..adf68a1 100644
--- a/jim_tcl.txt
+++ b/jim_tcl.txt
@@ -4564,6 +4564,9 @@ For example, if +-nocommands+ is specified, no command substitution
is performed: open and close brackets are treated as ordinary
characters with no special interpretation.
+*Note*: `expr` shorthand +$(\...)+ is considered a variable substitution
+and so is disabled by +-novariables+.
+
*Note*: when it performs its substitutions, subst does not give any
special treatment to double quotes or curly braces. For example,
the following script returns +xyz \{44\}+, not +xyz \{$a\}+.