On 5/1/10 6:19 PM, Freddy Vulto wrote: > I have to give local variables a value (append an equal sign) in order > to get them listed with 'local' in "blackbox()". Is there a bash > builtin which lists all defined local variable names, even those not > having a value yet?
A variable that has not been assigned a value is not set. After a statement like `declare -r foo', bash keeps a placeholder so that if foo will have the appropriate attributes if is is later assigned a value, but such variables are not set, cannot be referenced, and should not be listed by `set' or `declare'. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/