From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4237 invoked by alias); 5 Mar 2010 17:20:57 -0000 Received: (qmail 4229 invoked by uid 22791); 5 Mar 2010 17:20:56 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Fri, 05 Mar 2010 17:20:51 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 4A05D6D4360; Fri, 5 Mar 2010 18:20:48 +0100 (CET) Date: Fri, 05 Mar 2010 17:40:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: [ANNOUNCEMENT] [1.7] Updated: dash-0.5.5.1-2; Obsolete: ash Message-ID: <20100305172048.GN7980@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <4B5860C9.50100@sidefx.com> <4B591221.10501@byu.net> <4B91105B.7050205@sidefx.com> <20100305152637.GK7980@calimero.vinschen.de> <4B913788.40301@sidefx.com> <4B913AF2.3070102@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B913AF2.3070102@redhat.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2010-03/txt/msg00183.txt.bz2 On Mar 5 10:10, Eric Blake wrote: > According to Edward Lam on 3/5/2010 9:55 AM: > > Corinna Vinschen wrote: > >> Is that a case-sensitivity issue, perhaps? See > >> http://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-casesensitive > >> > > > > I don't see how it is: > > > > $ dash > > $ cd /c > > $ ls -d W* > > WINDOWS > > $ cd c:/WINDOWS > > cd: 3: can't cd to c:/WINDOWS > > Let's rule out bash vs. dash complexities, and first focus on whether > cygwin1.dll might be at fault. Untested code: > > #include > #include > #include > #include > int main(int argc, char**argv) > { > int e = chdir(argv[1]); > char *cwd = getcwd(NULL,0); > return printf ("chdir to %s: %d(%s), now in %s\n", argv[1], > e, strerror(e), cwd); > } Works fine in Cygwin, I just tested it: # cat > chdir.c << EOF #include #include int main (int argc, char **argv) { int ret = 0; if (argc > 1) ret = chdir (argv[1]); if (ret) perror ("chdir"); else { char buf[PATH_MAX]; getcwd (buf, PATH_MAX); printf ("pwd: %s\n", buf); } return ret ? 1 : 0; } EOF $ gcc -g -o chdir chdir.c $ ./chdir C:/Windows pwd: /cygdrive/c/Windows It's a problem in dash apparently. Btw., tcsh also has a problem with DOS paths, if you use backslashes, see the prompt: [~]$ cd C:\\Windows [~/C:\Windows]$ pwd /cygdrive/c/Windows I just don't care enough for DOS paths so I won't fix. 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