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: Ending space in file names is stripped, "sometimes"?


On Jul  7 14:13, Kent Boortz wrote:
> 
> [For some reason this email got stuck in my "not sent" folder]
> 
> Mark Geisert <mark@maxrnd.com> writes:
> > Thanks for the cygcheck output, but if the problem is observed only "sometimes" 
> > maybe you could provide an example?
> 
> Sorry, I was not clear, I did not mean it was "random".
> 
> I meant that 'ls "foo "' complained the directory was not found if the
> space was included, while "find" did happily accept "foo", "foo ",
> "foo " as argument meaning the same thing, still including the extra
> spaces in the output. This is shown in the examples I included.

There were no examples in your OP, just a cygcheck output without any
further comment.

Trailing spaces (and dots) in filenames are silently dropped by Win32
function calls.  This explains some of the weird effects when trying to
use them.  This will change with Cygwin 1.7 which doesn't use Win32
functions for file access anymore.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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