From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24155 invoked by alias); 21 Feb 2012 03:28:05 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30247 Received: (qmail 5382 invoked from network); 21 Feb 2012 03:28:02 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <120220192731.ZM3015@torch.brasslantern.com> Date: Mon, 20 Feb 2012 19:27:31 -0800 In-reply-to: Comments: In reply to Mikael Magnusson "Re: suspend (^Z) behavior while a function is running is unclear" (Feb 20, 8:48pm) References: <20120220130259.GB7797@xvii.vinc17.org> <20120220151309.4cc1a83d@pwslap01u.europe.root.pri> <20120220160944.GC7797@xvii.vinc17.org> <20120220163557.672588e2@pwslap01u.europe.root.pri> <120220094100.ZM359@torch.brasslantern.com> <20120220183335.GE7797@xvii.vinc17.org> <120220105301.ZM436@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: suspend (^Z) behavior while a function is running is unclear MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Feb 20, 8:48pm, Mikael Magnusson wrote: } Subject: Re: suspend (^Z) behavior while a function is running is unclear } } On 20 February 2012 19:53, Bart Schaefer wrote: } > } > foreach foo (a b c) { print $foo; sleep 5 } | while { read -rE } { : } } > } > (Using shortloops syntax to emphasize zsh-ness of this trick.) } } (This is actually not shortloops syntax.) Well, OK: "alternative" loop syntax, if you want to be that persnickety. (This is zsh-workers, though, so I doubt anyone is going to be confused.) Hm, using braces instead of "end" isn't even documented for "foreach", so I guess that's neither alternative nor shortloops.