about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Ackersviller <packersv@users.sourceforge.net>2007-11-24 23:21:31 +0000
committerPaul Ackersviller <packersv@users.sourceforge.net>2007-11-24 23:21:31 +0000
commit57cc145802a781407bf70ee833d83af0cc8a484f (patch)
tree6a0b0b06b025e529f76327b0d072ed72baf9dc25
parent3fdf7a77f200042a4086bb05d4c99e85b7598292 (diff)
downloadzsh-57cc145802a781407bf70ee833d83af0cc8a484f.tar.gz
zsh-57cc145802a781407bf70ee833d83af0cc8a484f.tar.xz
zsh-57cc145802a781407bf70ee833d83af0cc8a484f.zip
Merge of 23778: document KSH_TYPESET behaviour in typeset manual entry.
-rw-r--r--Doc/Zsh/builtins.yo9
1 files changed, 8 insertions, 1 deletions
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index 257d87dd6..a9be1d5c7 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -1271,7 +1271,14 @@ retain their special attributes when made local.
 
 For each var(name)tt(=)var(value) assignment, the parameter
 var(name) is set to var(value).  Note that arrays currently cannot be
-assigned in tt(typeset) expressions, only scalars and integers.
+assigned in tt(typeset) expressions, only scalars and integers.  Unless
+the option tt(KSH_TYPESET) is set, normal expansion rules apply to
+assignment arguments, so var(value) may be split into separate words; if
+the option is set, assignments which can be recognised when expansion is
+performed are treated as single words.  For example the command
+tt(typeset vbl=$(echo one two)) is treated as having one argument if
+tt(KSH_TYPESET) is set, but otherwise is treated as having the two arguments
+tt(vbl=one) and tt(two).
 
 If the shell option tt(TYPESET_SILENT) is not set, for each remaining
 var(name) that refers to a parameter that is set, the name and value of the