From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23210 invoked from network); 22 Jun 2004 06:57:21 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 22 Jun 2004 06:57:21 -0000 Received: (qmail 1704 invoked from network); 22 Jun 2004 06:56:58 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 Jun 2004 06:56:58 -0000 Received: (qmail 11376 invoked by alias); 22 Jun 2004 06:56:28 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7582 Received: (qmail 11367 invoked from network); 22 Jun 2004 06:56:28 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 22 Jun 2004 06:56:25 -0000 Received: (qmail 721 invoked from network); 22 Jun 2004 06:56:25 -0000 Received: from unknown (HELO pepper.fruitcom.com) (postfix@213.201.177.249) by a.mx.sunsite.dk with SMTP; 22 Jun 2004 06:56:24 -0000 Received: from localhost (pepper [127.0.0.1]) by pepper.fruitcom.com (Postfix) with ESMTP id 4556369E86; Tue, 22 Jun 2004 08:56:23 +0200 (CEST) Received: from pepper.fruitcom.com ([127.0.0.1]) by localhost (pepper [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18449-02-8; Tue, 22 Jun 2004 08:56:12 +0200 (CEST) Received: by pepper.fruitcom.com (Postfix, from userid 1000) id 94D4869E7E; Tue, 22 Jun 2004 08:56:12 +0200 (CEST) Date: Tue, 22 Jun 2004 08:56:12 +0200 From: Eric Smith To: zsh-users@sunsite.dk Subject: Re: ignore globs that do not match -> prevent function from exiting Message-ID: <20040622065612.GA18807@fruitcom.com> References: <20040614073704.GA18465@fruitcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1+cvs20040105i X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian os) X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=-0.0 required=6.0 tests=BAYES_44 autolearn=no version=2.63 X-Spam-Hits: -0.0 Bart Schaefer said: > mpg_glob() { mpg321 *${~^@}* } > alias mpg='noglob mpg_glob' If the globbed argument list includes an invalid file or something that causes mpg321 to fall over, then mpg_glob() exits. How could I avoid this? thanks -- Eric Smith