From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16146 invoked from network); 27 Jul 2006 09:21:13 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 27 Jul 2006 09:21:13 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 49377 invoked from network); 27 Jul 2006 09:21:06 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 27 Jul 2006 09:21:06 -0000 Received: (qmail 21361 invoked by alias); 27 Jul 2006 09:20:58 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10552 Received: (qmail 21351 invoked from network); 27 Jul 2006 09:20:58 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 27 Jul 2006 09:20:58 -0000 Received: (qmail 48245 invoked from network); 27 Jul 2006 09:20:58 -0000 Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by a.mx.sunsite.dk with SMTP; 27 Jul 2006 09:20:57 -0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1G622w-0000CU-HK for zsh-users@sunsite.dk; Thu, 27 Jul 2006 11:20:46 +0200 Received: from calabi-yao.net ([69.93.127.252]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Jul 2006 11:20:46 +0200 Received: from ljz by calabi-yao.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Jul 2006 11:20:46 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: Lloyd Zusman Subject: Re: Does zsh have an equivalent to the shopt command ? Date: Thu, 27 Jul 2006 05:18:29 -0400 Message-ID: <87y7ufcsnu.fsf@asfast.com> References: <96c45c490607220357h2c841b20q506de061f0e6f43b@mail.gmail.com> <200607221508.k6MF8W0w002651@pwslaptop.csr.com> <96c45c490607240044t282314dcn149e04073c0c2a1f@mail.gmail.com> <200607241001.k6OA1rvM003764@news01.csr.com> <96c45c490607240423u131caf80w6e5d667c735a65b9@mail.gmail.com> <200607241138.k6OBcQmE015964@news01.csr.com> <96c45c490607262038m39ed9af5nebe437335258ef0b@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: calabi-yao.net User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:AHDe2JtCFUVJpirNZy2j6Qm6RVM= Sender: news Sean 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 > > < EndHelp > > < 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 "< > On 7/24/06, Peter Stephenson 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@asfast.com God bless you.