Re: (feature request) here-document, but from a file

2005-07-03 Thread William Park
On Sat, Jul 02, 2005 at 11:43:36PM -0400, Chet Ramey wrote: Chris F.A. Johnson wrote: On Sat, 2 Jul 2005, William Park wrote: Dear Chet, It would be nice if I can read a file and process it as though it was here-document text in the script. Mainly, I want variable substitution,

Re: (feature request) here-document, but from a file

2005-07-02 Thread Bob Proulx
Chris F.A. Johnson wrote: William Park wrote: It would be nice if I can read a file and process it as though it was here-document text in the script. Mainly, I want variable substitution, without calling lots of 'sed'. In Python, you would do print ... % ... So, perhaps, you can use

Re: (feature request) here-document, but from a file

2005-07-02 Thread Paul Jarc
William Park [EMAIL PROTECTED] wrote: It would be nice if I can read a file and process it as though it was here-document text in the script. Mainly, I want variable substitution, without calling lots of 'sed'. eval blah EOT `cat file` EOT But this breaks if file contains an EOT line. paul

Re: (feature request) here-document, but from a file

2005-07-02 Thread Chet Ramey
Chris F.A. Johnson wrote: On Sat, 2 Jul 2005, William Park wrote: Dear Chet, It would be nice if I can read a file and process it as though it was here-document text in the script. Mainly, I want variable substitution, without calling lots of 'sed'. In Python, you would do print ...