From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gatech.edu (gatech.edu [130.207.244.244]) by werple.net.au (8.7/8.7) with SMTP id LAA11434 for ; Fri, 20 Oct 1995 11:56:09 +1000 (EST) Received: from euclid (euclid.skiles.gatech.edu) by gatech.edu with SMTP id AA00736 (5.65c/Gatech-10.0-IDA for ); Thu, 19 Oct 1995 21:53:32 -0400 Received: by euclid (5.x/SMI-SVR4) id AA23264; Thu, 19 Oct 1995 21:52:07 -0400 Old-Return-Path: Resent-Date: Fri, 20 Oct 1995 02:52:34 +0100 (BST) Old-Return-Path: From: Zefram Message-Id: <14356.199510200152@stone.dcs.warwick.ac.uk> Subject: Re: Filename Expansion To: toshi_isogai@maxtor.com (Toshi Isogai) Date: Fri, 20 Oct 1995 02:52:34 +0100 (BST) Cc: zsh-users@math.gatech.edu In-Reply-To: from "Toshi Isogai" at Oct 19, 95 06:52:02 pm X-Loop: zefram@dcs.warwick.ac.uk X-Stardate: [-31]6465.39 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-Id: <"a2IlA.0.Bh5.23mXm"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/104 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu >Toshi Isogai wrote: >This works fine if there is at least one file matches the >pattern. Otherwise, it exits with an error and 'other stuff' >never gets done. > >How can I make it so that it will just skip 'for' loop if >there aren't any files matches the pattern? setopt nullglob -zefram