I'm in the process of porting over a script from HP-UX to LINUX. When I try to source the script, bash complains that
bash: typeset: -u: invalid option
typeset: usage: typeset [-afFirtx] [-p] name[=value] ...
typeset: usage: typeset [-afFirtx] [-p] name[=value] ...
./install_profile: line 237: typeset: -l: invalid option
From what I can see, typeset is used to assign a value to a variable, although I don't quite understand what typeset -u
and typeset -l
do specifically that's different from a general assignment such as foo="bar".
I was wondering if there was some equivalent way to express typeset -u
and typeset -l
for LINUX bash since it does not appear to be compatible with bash.
Altneratively, I was wondering if it would be possible to get the typeset commands recognized as ksh commands, since it appears that typeset is from ksh.
Thanks.