mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-12-29 16:25:35 +01:00
mention that typeset doesn't default parameters to scalar in ksh
This commit is contained in:
parent
3ad5e3e7fe
commit
ae8f4db385
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue