From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23331 invoked by alias); 22 Oct 2013 16:46:14 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18042 Received: (qmail 28838 invoked from network); 22 Oct 2013 16:45:58 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; bh=NOggsS1RB6CZI3AIjjixr22rty+NjTtIoZRPQXd8ZbE=; b=A7QJJVJOep2oGlDSKltIJPr0Z0s2jzsI6y+VbYLd7ggqCMEB7zjEvJfjhTqziXiggC 6ar3PWNDcx2Heis2fSU9E5Ay3OZpkfFvsTb6cBSXVs2eyq3IyfgWviTpOSDHynH3TGTr jCSV4Xkxx2tJ4ARvZ4T1ygt6uDLFZwP4vEhealu1ikzl4lA6hEKJDq8VL7jZKGRx9/jp 1F0INjsgqOYuujPl5fOVf9X1dkKarG8ookqvjZtltla8JeOUxntzxgCOLDpx3nbQtKmo vYe59zj0rUOJs5rSSiAiCRjeN7HzJxmq32QgjiV9dxoBvay0opthf7YuVmeYDZDKSUlS WDbw== X-Received: by 10.236.53.164 with SMTP id g24mr16355854yhc.18.1382460353486; Tue, 22 Oct 2013 09:45:53 -0700 (PDT) From: Brent Briggs Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Glob problem Message-Id: Date: Tue, 22 Oct 2013 12:45:48 -0400 To: zsh-users@zsh.org Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) X-Mailer: Apple Mail (2.1510) Hello Zsh masters, I am simply trying to list all matches for a specified pattern in an = array of directory paths, the $path array for example. Here is my = attempt. Where am I going wrong? pattern=3Dgit* for entry in $path do # Print all files in the path that match the pattern.=20 print $entry/$pattern done Expected/Desired Output: ------------------------ /opt/local/bin/git /opt/local/bin/git-credential-osxkeychain /opt/local/bin/git-cvsserver /opt/local/bin/git-receive-pack /opt/local/bin/git-shell /opt/local/bin/git-upload-archive /opt/local/bin/git-upload-pack /opt/local/bin/gitk /usr/bin/git /usr/bin/git-cvsserver /usr/bin/git-receive-pack /usr/bin/git-shell /usr/bin/git-upload-archive /usr/bin/git-upload-pack Actual Output: ------------------- /opt/local/bin/git* /opt/local/sbin/git* /opt/local/bin/git* /opt/local/sbin/git* /usr/bin/git* /bin/git* /usr/sbin/git* /sbin/git* /usr/local/bin/git* /usr/local/MacGPG2/bin/git* /Users/brent/bin/git* /Users/brent/bin/git*=