1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-04-28 04:45:18 +02:00

mention that typeset doesn't default parameters to scalar in ksh

This commit is contained in:
Oliver Kiddle 2002-10-09 13:19:26 +00:00
parent 3ad5e3e7fe
commit ae8f4db385

View File

@ -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