delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/04/04/19:44:02

From: iverson AT cisco DOT com (Tim Iverson)
Subject: Multi-dot paths
4 Apr 1997 19:44:02 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199704050005.QAA27929.cygnus.gnu-win32@rottweiler.cisco.com>
Mime-Version: 1.0
Original-To: gnu-win32 AT cygnus DOT com
X-Mailer: ELM [version 2.4 PL25]
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Several folks have asked what "multi-dot" relative paths are.  Win95
will resolve each extra dot to mean back up one more directory; eg.

  .    = cwd
  ..   = previous dir
  ...  = ../..
  .... = ../../..
  etc.

Under bash, you can actually use these, but it looks kinda funny if you've
put the CWD into your prompt -- bash doesn't know that "..." backs up, so
you get "/foo/bar/.../baz> " for a prompt.  PWD is also broken -- it just
looks up the shell's idea of CWD when it should be asking the OS.


- Tim Iverson
  iverson AT cisco DOT com
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019