I built ksh93 using 2008-11-04 source release on mvs.390 and I experience
problem with receiving arguments.
ksh <<EOF -s "My home directory: " $HOME
> echo \$1 \$2
> echo end of message
> EOF
end of message
As you can see the 1st and 2nd arguments did not come out on the output.
The same is true if I pass integer arguments rather than sting arguments.
I noticed that when I run korn shell script within the same process (using
'.' in front of ksh script) that the arguments are received correctly.
// content of 'go' ksh script
#!/bin/ksh
a1=$1
a2=$2
echo $1 $2
echo end of message
This does not work:
go "My home directory: " $HOME
end of message
However this works:
. go "My home directory: " $HOME
My home directory: /home/ts53544
end of message
Another problem is printing ksh version:
ksh -c 'printf "Using: ${.sh.version}\n" '
Using: .sh.version}
Does anybody have some insights which will help to find the root of the
problem and get this correct it?
Zbigniew S.
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users