summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-08-18 10:08:41 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-08-18 10:08:41 +0000
commit34570ca31863a06c0bd8963c2530248f18f79a04 (patch)
tree3411b30a4890c8ee7f11650ae6dd17d5494e6948 /Doc/Zsh
parentb37f52b8841f6a21a898e8f6e5acb7021ea94853 (diff)
downloadzsh-34570ca31863a06c0bd8963c2530248f18f79a04.tar.gz
zsh-34570ca31863a06c0bd8963c2530248f18f79a04.tar.xz
zsh-34570ca31863a06c0bd8963c2530248f18f79a04.zip
23778: document KSH_TYPESET behaviour in typeset manual entry
Diffstat (limited to 'Doc/Zsh')
-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 5eb71adb1..413e43ed8 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -1331,7 +1331,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