X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Mon, 7 Jul 2008 14:54:29 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Ending space in file names is stripped, "sometimes"?
Message-ID: <20080707125429.GA25687@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <d2abgyunqp.fsf@air.local> <loom.20080704T084927-370@post.gmane.org> <d2myktlwnj.fsf@air.local>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <d2myktlwnj.fsf@air.local>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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/

