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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 6d69bc50 for ; Sun, 11 Nov 2018 22:19:45 +0000 (UTC) Received: (qmail 29774 invoked by alias); 11 Nov 2018 22:19:33 -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: 23755 Received: (qmail 21418 invoked by uid 1010); 11 Nov 2018 22:19:33 -0000 X-Qmail-Scanner-Diagnostics: from out5-smtp.messagingengine.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(66.111.4.29):SA:0(-2.7/5.0):. Processed in 4.222505 secs); 11 Nov 2018 22:19:33 -0000 X-Envelope-From: bernat@luffy.cx X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=luffy.cx; h=from :to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-type:content-transfer-encoding; s=fm1; bh= 7drapUkl16P3LTTCnfNGydmuj4IMzEO/2wRkgfFEvGg=; b=iE9yC1HAK3U+jVLm ZDZoyS2GIkAFzN3a8yP3g7ivmy3smbYNTgjzZQ724RVwWXVp1OLDAc6GYB1ko5FS vfEgm7ynShNoxMl7/EgGT2VRgK5ZY54BWbbxEmDBSneVZPYCwE5hz6egl8QC5rjC BXygxI7cVYLwdBqyN7mmJ3xilIgUYZnHfVbck9CGE1FQs+FLFwzOX6vPII3sD09k E/aif0z9t0WHORg90vSU8jID7OPABjNWDNneqpSELix98fMGTlgyzwRQtaBRT0s+ t0Xsf0QuY7FbKLLsmYPlqrcComd07Ubb5AU8CR3KbRRI1kz8oiVbWGLSVLWFpfzR eedsaQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=7drapUkl16P3LTTCnfNGydmuj4IMzEO/2wRkgfFEv Gg=; b=L68+rpL6yasK8Nz2f1l/TA20DJFnGBoYsXMgfs1cB1Ge0PKjy/YL5oN2r 8GMI3nF1sXbIKAM04niM2Gtufmmjwpkyz9QNtbygnKJC6jpEEs9cq3wvZa2bcUVb /UgM0LJLbWzN/03rhdzvOMr+NlZtgHILx8wefwwIjM8uUwfFlBc4+vgaRMB118Uz eVI6vQuYcTTnU+o+cxoDTw3L3v5e1zaY/W2+jJGayitJsjltFMjXxaqaIF83/mp4 sWxGLc5S8SMBKX5oe/bDSiRLP13gXGF1W4UQvNYtiLsEuE5gmhJQl+yX4aahxyBC 04AhxBl34H80HqqUT4JQnioQUFO5w== X-ME-Sender: X-ME-Proxy: From: Vincent Bernat To: Eric Smith Cc: zsh-users Subject: Re: globbing working on CLI but not in file References: <20181111215317.imsuiifj2ezew33s@trustfood.org> Date: Sun, 11 Nov 2018 23:19:23 +0100 In-Reply-To: <20181111215317.imsuiifj2ezew33s@trustfood.org> (Eric Smith's message of "Sun, 11 Nov 2018 22:53:17 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =E2=9D=A6 11 novembre 2018 22:53 +0100, Eric Smith : > 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. You need to enable extendedglob option: setopt extendedglob --=20 Suspicion always haunts the guilty mind. -- Wm. Shakespeare