[prev in list] [next in list] [prev in thread] [next in thread]
List: ast-users
Subject: Re: [ast-users] arguments to script in here-document
From: David Korn <dgk () research ! att ! com>
Date: 2008-10-22 13:27:52
Message-ID: 200810221327.m9MDRqJO001921 () penguin ! research ! att ! com
[Download RAW message or body]
cc: tma@silinova.se
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
dgk@research.att.com
_______________________________________________
ast-users mailing list
ast-users@research.att.com
https://mailman.research.att.com/mailman/listinfo/ast-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic