This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: question on Cygwin's version of make


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]