delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Mon, 7 Jul 2008 14:54:29 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Ending space in file names is stripped, "sometimes"? |
Message-ID: | <20080707125429.GA25687@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <d2abgyunqp DOT fsf AT air DOT local> <loom DOT 20080704T084927-370 AT post DOT gmane DOT org> <d2myktlwnj DOT fsf AT air DOT local> |
MIME-Version: | 1.0 |
In-Reply-To: | <d2myktlwnj.fsf@air.local> |
User-Agent: | Mutt/1.5.16 (2007-06-09) |
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 Jul 7 14:13, Kent Boortz wrote: > > [For some reason this email got stuck in my "not sent" folder] > > Mark Geisert <mark AT maxrnd DOT 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |