Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Does zsh have an equivalent to the shopt command ?



As Lloyd pointed out, the script is a little long to post inline, but
is available here:

http://todotxt.com/download/todo.sh

Peter, I tried your replacement suggestion, but it also (after a long
think) crashed zsh.

I have come up with this brilliant fix:

version()
{
 echo "TODO.TXT Manager
Version 1.7.1
Author:  Gina Trapani (ginatrapani@xxxxxxxxx)
Release date:  5/11/2006
Last updated:  7/20/2006
License:  GPL, http://www.gnu.org/copyleft/gpl.html
More information and mailing list at http://todotxt.com";
   exit 1
}

Cheers

Sean

On 7/27/06, Lloyd Zusman <ljz@xxxxxxxxxx> wrote:
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.





Messages sorted by: Reverse Date, Date, Thread, Author