* FW: Issue in gitbash changing directory
[not found] ` <DM5PR04MB06197EF8FA0344708A69C842C7190@DM5PR04MB0619.namprd04.prod.outlook.com>
@ 2017-04-18 12:48 ` Bonk, Gregory
2017-04-18 16:53 ` Kevin Daudt
0 siblings, 1 reply; 2+ messages in thread
From: Bonk, Gregory @ 2017-04-18 12:48 UTC (permalink / raw)
To: git@vger.kernel.org
I accidently typed 'cd //' and it worked.
gbonk@ICC11167 MINGW64 /c/git/mtb-messagehub-information-radiator (master)
$ cd //
gbonk@ICC11167 MINGW64 //
$ cd ..
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: FW: Issue in gitbash changing directory
2017-04-18 12:48 ` FW: Issue in gitbash changing directory Bonk, Gregory
@ 2017-04-18 16:53 ` Kevin Daudt
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Daudt @ 2017-04-18 16:53 UTC (permalink / raw)
To: Bonk, Gregory; +Cc: git@vger.kernel.org
On Tue, Apr 18, 2017 at 12:48:09PM +0000, Bonk, Gregory wrote:
>
> I accidently typed 'cd //' and it worked.
>
> gbonk@ICC11167 MINGW64 /c/git/mtb-messagehub-information-radiator (master)
> $ cd //
>
> gbonk@ICC11167 MINGW64 //
> $ cd ..
This has very little to do with git, but more with bash (the shell that
is interpretting the command. From a bash FAQ [1]:
> E10) Why does `cd //' leave $PWD as `//'?
>
> POSIX.2, in its description of `cd', says that *three* or more leading
> slashes may be replaced with a single slash when canonicalizing the
> current working directory.
>
> This is, I presume, for historical compatibility. Certain versions of
> Unix, and early network file systems, used paths of the form
> //hostname/path to access `path' on server `hostname'.
So this is kind of intentional.
[1]: https://tiswww.case.edu/php/chet/bash/FAQ
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-04-18 17:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <DM5PR04MB061907F6F650E56FE2ECBCD5C7190@DM5PR04MB0619.namprd04.prod.outlook.com>
[not found] ` <DM5PR04MB06197EF8FA0344708A69C842C7190@DM5PR04MB0619.namprd04.prod.outlook.com>
2017-04-18 12:48 ` FW: Issue in gitbash changing directory Bonk, Gregory
2017-04-18 16:53 ` Kevin Daudt
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).