From ae8f4db3857a317a2cc2ff1c7533b7e911ec3221 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Wed, 9 Oct 2002 13:19:26 +0000 Subject: mention that typeset doesn't default parameters to scalar in ksh --- Etc/STD-TODO | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Etc') diff --git a/Etc/STD-TODO b/Etc/STD-TODO index a228dee96..745a196d4 100644 --- a/Etc/STD-TODO +++ b/Etc/STD-TODO @@ -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