git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Case sensitivity on Windows for absolute paths.

From
RCRicky Clarkson <ricky.clarkson@gmail.com>
Date
Apr 25, 2010, 18:47 UTC
Message-ID
<r2z7eeb06461004251147jce635231kca659b52a48571d0@mail.gmail.com>
In-Reply-To
<201004252008.27823.j6t@kdbg.org>
Hi Johannes,
$ cd /c/uk-org-netvu/

Ricky@RICKY-XP /c/uk-org-netvu (trunk) $ cmd Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp.

c:\uk-org-netvu>
If I run cmd via Start -> Run, then the prompt shows C:\uk-org-netvu>

I also verified this using the Scala interpreter, printing out System.getProperty("user.dir"), which varied similarly in case depending on whether I started it from cmd or from Git Bash.

Thanks, Ricky.

--
Ricky Clarkson
Java and Scala Programmer, AD Holdings
+44 1928 706373
Skype: ricky_clarkson
Google Talk: ricky.clarkson@gmail.com
Google Wave: ricky.clarkson@googlewave.com
On 25 April 2010 19:08, Johannes Sixt <j6t@kdbg.org> wrote:
Show 12 quoted lines
> On Sonntag, 25. April 2010, Ricky Clarkson wrote:
>> It would be good if git automatically uppercased the drive letter,
>> yes.  However, I found the real root of my problem.  Git Bash
>> (msysgit) sets the working directory to c:\foo for programs launched
>> if the working directory within it is /c/foo.
>
> I don't understand what you mean. Git Bash cannot influence whether git sees
> the drive letter in the working directory in uppercase or lowercase. Unless
> by "working directory" you mean something else than what getcwd() returns.
>
> -- Hannes
>
Previous: Johannes Sixt
Message 5 of 5 in “Case sensitivity on Windows for absolute paths.”
  1. Ricky ClarksonApr 23, 2010
  2. Johannes SixtApr 23, 2010
  3. Ricky ClarksonApr 25, 2010
  4. Johannes SixtApr 25, 2010
  5. Ricky ClarksonApr 25, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.