mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 05:24:23 +01:00
mention that typeset doesn't default parameters to scalar in ksh
This commit is contained in:
parent
3ad5e3e7fe
commit
ae8f4db385
@ -59,6 +59,11 @@ All parameters in ksh are indexed arrays. That's why $array has to mean
|
||||
${array[0]}, and why subscripts can't be used to extract substrings from
|
||||
scalars.
|
||||
|
||||
`typeset a' in ksh does not initialise `a' to be a scalar with the empty
|
||||
string as its value but leaves it undefined. If it is used in array
|
||||
context, its value will be that of an empty array so, for example
|
||||
"${a[@]}" will return nothing.
|
||||
|
||||
In ksh,
|
||||
exec 3<file
|
||||
causes file 3 to be close on exec. DGK says: "This allows scripts to
|
||||
|
Loading…
Reference in New Issue
Block a user