How can I accomplish the following in a ksh script:

sh <<EOF first second
> echo \$1 \$2
> EOF

and have it output

first second

because the following:

cat <<EOF >1.sh
> echo \$1 \$2
> EOF

chmod +x 1.sh
./1.sh first second

will output
first second

Thanks in advance!

_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to