delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4F51317F.1050104@cs.cmu.edu> |
Date: | Fri, 02 Mar 2012 12:45:51 -0800 |
From: | Paul Allen Newell <pnewell AT cs DOT cmu DOT edu> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.27) Gecko/20120216 Thunderbird/3.1.19 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
CC: | "Newell, Paul" <pnewell AT cs DOT cmu DOT edu> |
Subject: | Re: question on Cygwin's version of make |
References: | <4F4F21AC DOT 7060209 AT cs DOT cmu DOT edu> <CAB8Xom9zz5CN+yE6cHBj-h-PG4aUxghckkmAYZiQko8SfmNuhQ AT mail DOT gmail DOT com> <4F4F2877 DOT 4080006 AT cs DOT cmu DOT edu> <4F4FB35D DOT 1010802 AT molconn DOT com> <4F50275E DOT 5060901 AT cs DOT cmu DOT edu> <20120302091027 DOT GC14404 AT calimero DOT vinschen DOT de> |
In-Reply-To: | <20120302091027.GC14404@calimero.vinschen.de> |
X-IsSubscribed: | yes |
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 |
On 3/2/2012 1:10 AM, Corinna Vinschen wrote: > On Mar 1 17:50, Paul Allen Newell wrote: >> Given that the problem is identified (basename doesn't like spaces), > This is not correct. It's not that basename doesn't like spaces, the > problem is incorrect quoting. Example: > > $ basename /a/b/c.d .d > c > $ basename "/a/b/c.d .d" > c.d .d > > And since the result still contains a space, you still have to quote > it when using it in subsequent calls: > > $ cat "c.d .d" > Hello > $ cat c.d .d > cat: c.d: No such file or directory > cat: .d: No such file or directory > > > Corinna > Corinna: Thanks. Once Dave Korn led me to the alias I had in .bashrc and I could see that I was, in fact, calling basename (and my alias wasn't correct), everything began to fall into place. My original assumption was very incorrect. I also thank you for showing me that it will be a double quote and not a single quote. Paul -- 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 |