cc: [EMAIL PROTECTED]
Subject: Re: [ast-users] problem with receiving arguments on mvs.390
--------
> I built ksh93 using 2008-11-04 source release on mvs.390 and I experience
> problem with receiving arguments.
I am glad to hear that you were able to build. We haven't had acces
to an mvs.390 with Unix System Servies with a C compiler for a couple
of years and have been looking for one.
>
> 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.
The shell that you are in when you invoked this command is the one
that should have set argv appropriately. Were you in ksh93 at this point
or in /bin/sh or /bin/ksh?
>
> // 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.
>
David Korn
[EMAIL PROTECTED]
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users