From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 84484c7c for ; Sun, 11 Nov 2018 22:01:55 +0000 (UTC) Received: (qmail 6597 invoked by alias); 11 Nov 2018 22:01:38 -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: List-Unsubscribe: X-Seq: 23754 Received: (qmail 3844 invoked by uid 1010); 11 Nov 2018 22:01:38 -0000 X-Qmail-Scanner-Diagnostics: from pepper.fruitcom.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(37.74.143.30):SA:0(-1.9/5.0):. Processed in 2.694884 secs); 11 Nov 2018 22:01:38 -0000 X-Envelope-From: Eric.Smith@trustfood.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Date: Sun, 11 Nov 2018 22:53:17 +0100 From: Eric Smith To: zsh-users Subject: globbing working on CLI but not in file Message-ID: <20181111215317.imsuiifj2ezew33s@trustfood.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20180622-67-2761ca Hi zsh'ers, This glob works when executed on the CLI $ ls [^~](#i)*xls*(.om[1]) something_with_xls_in_it.xls But not in a file $ /usr/bin/zsh --no-rcs -x bin/lastmatch +/etc/zsh/zshenv:15> [[ -z /Users/eric/bin: ... other path here ////bin:/usr/bin ]] bin/lastmatch:2: no matches found: [^~](#i)*xls*(.om[1]) $ zsh --version zsh 5.1.1 (x86_64-ubuntu-linux-gnu) Thanks to anyone who can help me to run this in a script. ciao Eric