Hi AST users,
Using
/bin/ksh --version
version sh (AT&T Research) 93u 2011-02-08
With test script
function foo3 {
typeset groupDB="" userDB=""
typeset -l -L1 DBPick=""
if [[ -n "$groupDB" ]] ; then
echo "groupDB should have a value of: $groupDB"
fi
}
typeset hello='yes'
echo ${.sh.version}
if [[ -n "$hello" ]] ; then
echo yes
fi
foo3
Output results
Version JM 93u 2011-02-08
yes
groupDB should have a value of:
The problem appears to be caused by the
typeset -l -L1 DBPick=""
Change script:
function foo3 {
typeset groupDB="" userDB=""
typeset -L1 DBPick=""
if [[ -n "$groupDB" ]] ; then
echo "groupDB should have a value of: $groupDB"
fi
}
typeset hello='yes'
echo ${.sh.version}
if [[ -n "$hello" ]] ; then
echo yes
fi
foo3
Results as expected:
Version JM 93u 2011-02-08
yes
Possible bug or syntax issue?
Thank you,
Michael
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users