cc: [EMAIL PROTECTED]
Subject: Re: [ast-users] arguments to script in here-document
--------


> How can I accomplish the following in a ksh script:
> 
> 
> sh <<EOF first second
> > echo \$1 \$2
> > EOF
> 
> and have it output
> 
> first second
> 

If I understand the question, you need to do

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

The -s is needed to prevent the first argument from being taken as
the script name.

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

Reply via email to