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 LAA09290 for ; Fri, 20 Oct 1995 11:12:26 +1000 (EST) Received: from euclid (euclid.skiles.gatech.edu) by gatech.edu with SMTP id AA29628 (5.65c/Gatech-10.0-IDA for ); Thu, 19 Oct 1995 21:03:43 -0400 Received: by euclid (5.x/SMI-SVR4) id AA22785; Thu, 19 Oct 1995 21:01:21 -0400 Old-Return-Path: Resent-Date: Thu, 19 Oct 1995 18:52:02 -0600 (MDT) Old-Return-Path: Date: Thu, 19 Oct 1995 18:52:02 -0600 (MDT) From: Toshi Isogai To: zsh-users@math.gatech.edu Subject: Filename Expansion Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Resent-Message-Id: <"hMGNg.0.mZ5.MJlXm"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/103 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu I am writing a script to search files in a certain pattern and manipulate them. Something like: for i in *.vhd; do # do some operation on $i here done # do other stuff 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? Toshi Isogai 磯貝利明