From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 173 invoked from network); 24 Jul 2006 11:38:48 -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; 24 Jul 2006 11:38:48 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 36231 invoked from network); 24 Jul 2006 11:38:41 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 24 Jul 2006 11:38:41 -0000 Received: (qmail 11083 invoked by alias); 24 Jul 2006 11:38:34 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10545 Received: (qmail 11072 invoked from network); 24 Jul 2006 11:38:34 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 24 Jul 2006 11:38:34 -0000 Received: (qmail 35133 invoked from network); 24 Jul 2006 11:38:34 -0000 Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by a.mx.sunsite.dk with SMTP; 24 Jul 2006 11:38:29 -0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1G4ylV-0005T9-0V for zsh-users@sunsite.dk; Mon, 24 Jul 2006 13:38:25 +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 ; Mon, 24 Jul 2006 13:38:25 +0200 Received: from ljz by calabi-yao.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Jul 2006 13:38:25 +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: Mon, 24 Jul 2006 07:35:59 -0400 Message-ID: <87u057s09s.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> 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:7wkM6JfYpMPHriooY/fhRMbWGpg= Sender: news Sean writes: > The message fails to print and the shell hangs ! Could you post your entire script? > On 7/24/06, Peter Stephenson wrote: >> Sean wrote: >> > On futher investigation, it appears that it is not actually choking on >> > that line, rather this code which appears in many of the case option >> > function calls: >> > >> > version() { sed -e 's/^ //' <> > TODO.TXT Manager >> > Version 1.6.3 >> > Author: Gina Trapani (ginatrapani@gmail.com) >> > Release date: 5/11/2006 >> > Last updated: 7/6/2006 >> > License: GPL, http://www.gnu.org/copyleft/gpl.html >> > More information and mailing list at http://todotxt.com >> > EndVersion >> > exit 1 >> > } >> >> Hmmm... again, that should work fine and does on my machine; the >> shell isn't asked to do anything much beyond parsing a here document. >> When you say "chokes", what do you mean? Obviously calling the >> function will cause the shell to exit, because of the "exit 1" at the >> end ; is it failing to print the message, exiting in some odd way, >> hanging...? Or are you saying the options to the parent function (with >> the getopts) are such that this function shouldn't be called? In which >> case, what combination of options to that function is causing unexpected >> behaviour? (I could believe getopts behaved differently from bash but I >> need to see the command line being passed.) >> >> I'm guessing a lot of the spaces in that function were actually >> tabs, but I've put those back and not had any problem. >> >> -- >> Peter Stephenson Software Engineer >> CSR PLC, Churchill House, Cambridge Business Park, Cowley Road >> Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 >> >> >> 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.