Sean <schliden@xxxxxxxxx> writes:
> Sorry for the slow reply... wife's birthdays seems to take preceedence :^)
>
> I can run sed from the command line ok, and all of the other sed stuff
> in the script works.
>
> It seems to be something to do with processing these text blocks:
>
> <<EndVersion
> EndVersion
>
> <<EndHelp
> EndHelp
>
> <<Endusage
> EndUsage
>
> I have tried saving these in seperate files and running them but zsh
> crashes immeadiately, without outputting a single line.
>
> What does: -e 's/^ //' do anyway ?
>
> Perhaps I can work around this with a different approach.
>
> Cheers
>
> Sean
Again, could you post the entire script, from top to bottom? It will be
easier to help you with this if you do so.
The "-e ..." stuff you mention above strips the leading whitespace out
of the lines within the here document, e.g., between "<<EndVersion" and
"EndVersion".
>
> On 7/24/06, Peter Stephenson <pws@xxxxxxx> wrote:
>> Sean wrote:
>> > The message fails to print and the shell hangs !
>>
>> I can't reproduce that. What happens if you run the sed (and its
>> here-document) from the command line, or by running ". file" on a file
>> that contains only the sed command? Could the path to "sed" be wrong?
>>
>> pws
>>
>>
>> To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
>>
>
--
Lloyd Zusman
ljz@xxxxxxxxxx
God bless you.