X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=I2sSLf4Qsfj7jDk/ DFx2wcV/B4fz394WyzR4jXzUDHH9va8ZZP5A3f68+QEPgrUZ1PLT1NUG4fLM7P+P 8P7luc/BPbdUVZ2hPHXAEdkwENV07dmCKPelrUq8nAG8KjtO6NF2bK+7wbILs2ju HhQQMaXqVvP0i9C2X2EWJMkRCFg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=g/WruJWiT6oEJu/smBS8br A9avU=; b=iF0uZ5KvVHR1rjGTB3acaHE3AvNoPdnbhA6MywuEpBsKLdXgSvl5Dw utuMNgVb0gSugDLD3+xYTvFrXtOzx0ksx5I8Vthzqq2bPwPeDFi8V/Ts/pJ8pVFX tjldBmu2mQrm9lpGorDLcXpYhU5+UoumYiXu79UFznb9V3xvpzePY= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=Brian, brian, inglis, Inglis X-HELO: smtp-out-no.shaw.ca Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca Subject: Re: Zsh and wildcards To: "cygwin AT cygwin DOT com" References: <20190219204201 DOT GM2904 AT mrvideo DOT vidiot DOT com> <9c57f408-e442-ac1e-821e-c27604359df8 AT SystematicSw DOT ab DOT ca> <20190220181351 DOT GP2904 AT mrvideo DOT vidiot DOT com> From: Brian Inglis Openpgp: preference=signencrypt Message-ID: <4884d0b2-737f-205e-bd7d-d8231c83b1bc@SystematicSw.ab.ca> Date: Wed, 20 Feb 2019 14:39:42 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190220181351.GP2904@mrvideo.vidiot.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 2019-02-20 11:13, Mike Brown wrote: > On Tue, Feb 19, 2019 at 11:31:24PM -0700, Brian Inglis wrote: >> On 2019-02-19 13:42, Mike Brown wrote: >>> Zsh 5.3 under Win7-64 >>> I'm trying to do the following: >>> mv TSMUXER/*.ac3 TSMUXER/txmuxer.ac3 >>> The problem is the the * is not being expanded. I have no idea why not. >>> Any tips will be appreciated. >> >> The command line implies you have a .ac3 file already in TSMUXER and want to >> rename it to fixed name txmuxer.ac3. A lack of expansion implies there is no >> file matching that pattern. You can prefix simple commands with echo to test >> their effect. If a pattern is not expanded, use ls to check what exists in the >> source directory, and where it differs from your expectation. > > Ah, but the file I want to change the name of is indeed there. For this > particular run, the name is ".track_2.ac3". > > And yes, I did all kinds of testing to see what was being presented. > > For the time being I got around it by doing: > > mv TSMUXER/`ls -A TSMUXER` TSMUXER/tsmuxer.ac3 > > But, I'd rather use the wildcard. Plus, I'd like to know why it isn't > working and how to fix it. Dotfiles .* are hidden by default under most shell expansions unless .* is explicitly specified or shell specific options are specified: for zsh specify the D glob qualifier *(D), for bash set shopt -s dotglob. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple