www.delorie.com/archives/browse.cgi | search |
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=a6MfMEZcgXBMsTkn | |
UwIT748nrEzqFFiQLzR3C68uHkYE8+U2nMU6A0xpJzFRhqcUAjZnlQ32o6Jvblqh | |
+y0B/4ye1jn2T9VPlTMdtaatSrCZzXB6JiZovGWOzxRoLuebDPbYkzdcDNYbZlC+ | |
u4fGEZR6PCGI4yu0HElz0U1IP9s= | |
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=wmm6RnBnP168JSFxh0KmmC | |
ow4e4=; b=Nxymt3Y2l0TJVeV4GSBO7Xyp55j4Ugzt92g1Ij9cNG3R1CfF9rKG6l | |
1/d47gb06I9PJYA4e+HP6pfut0nH2J2eunglFN9csG8zgV8vi34k3vzzHqgR6YSx | |
2k3mwCUMBfZ1YQScCXY0qZfpuOB+Eesw3Ui6OtXBce4Z4A75w+XdI= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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.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 |
Reply-To: | moss AT cs DOT umass DOT edu |
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> <4884d0b2-737f-205e-bd7d-d8231c83b1bc AT SystematicSw DOT ab DOT ca> |
From: | Eliot Moss <moss AT cs DOT umass DOT edu> |
Message-ID: | <b665ba5c-4ef6-7797-967c-679bbd654fde@cs.umass.edu> |
Date: | Wed, 20 Feb 2019 17:13:16 -0500 |
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> |
X-IsSubscribed: | yes |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |