delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/03/02/04:11:26

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 2 Mar 2012 10:10:27 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: question on Cygwin's version of make
Message-ID: <20120302091027.GC14404@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
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>
MIME-Version: 1.0
In-Reply-To: <4F50275E.5060901@cs.cmu.edu>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 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 Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019