From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 113688 invoked by alias); 20 Feb 2019 22:13:21 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 113621 invoked by uid 89); 20 Feb 2019 22:13:20 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=Brian, brian, inglis, Inglis X-HELO: mailsrv.cs.umass.edu Received: from mailsrv.cs.umass.edu (HELO mailsrv.cs.umass.edu) (128.119.240.136) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 20 Feb 2019 22:13:19 +0000 Received: from [192.168.24.230] (eduroamgw.cs.umass.edu [128.119.40.194]) by mailsrv.cs.umass.edu (Postfix) with ESMTPSA id 69C294023B85; Wed, 20 Feb 2019 17:13:17 -0500 (EST) Reply-To: moss@cs.umass.edu Subject: Re: Zsh and wildcards To: cygwin@cygwin.com References: <20190219204201.GM2904@mrvideo.vidiot.com> <9c57f408-e442-ac1e-821e-c27604359df8@SystematicSw.ab.ca> <20190220181351.GP2904@mrvideo.vidiot.com> <4884d0b2-737f-205e-bd7d-d8231c83b1bc@SystematicSw.ab.ca> From: Eliot Moss Message-ID: Date: Wed, 20 Feb 2019 22:25:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <4884d0b2-737f-205e-bd7d-d8231c83b1bc@SystematicSw.ab.ca> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-02/txt/msg00343.txt.bz2 On 2/20/2019 4:39 PM, Brian Inglis wrote: > 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. ... or just do: mv TSMUXER/.*.ac3 TSMUXER/tsmuxer.ac3 (Note the . after the / !) Best - EM -- 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