Hi again,
Your line:
Code:
if [ -z $environmentEntered ]; then;environment=$environment;else;environment=$environmentEntered;fi
Should be rewritten as:
Code:
if [ -z $environmentEntered ]; then environment=$environment; else environment=$environmentEntered; fi
to work under ksh93, i.e. no semicolons after "then" or "else".
Ideally you should also put the $environmentEntered in the test in quotes, which will allow it to run under the default AIX ksh too, as follows:
Code:
if [ -z "$environmentEntered" ]; then environment=$environment; else environment=$environmentEntered; fi
This assumes some default value is already set in $environment; if not, it should also be quoted (which is better practice anyway).
Regards,
Clifford