zsh-workers
 help / color / mirror / code / Atom feed
From: Matt Armstrong <matt_armstrong@bigfoot.com>
To: zsh-workers@math.gatech.edu
Subject: PATCH: zsh-3.1.5-pws-6: some basic cygwin path handling fixes
Date: 31 Jan 1999 18:58:41 -0800	[thread overview]
Message-ID: <ulniilti6.fsf@bigfoot.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 920 bytes --]

There are some problems with zsh's pathname handling that don't work
when cygwin's (poorly thought out) drive letter hacks are in effect:

1) "//<drive-letter>/dir" is a valid path.  builtin.c's fixdir()
   strips off double slashes, which breaks things.

2) If you chdir("..") while in //D you're put in "/" but "/D" is not a
   directory in "/".  This breaks zgetdir().  (there is actually
   another bug in cygwin that breaks zgetdir(), but that is a moot
   point after my fix)

The fixes:

For #1, I just allow a leading // under cygwin.

For #2, I just have zgetdir() call getcwd() under cygwin.  I
considered having zgetdir() use getcwd() for all systems that had it.
I know the Linux kernel now has a getcwd() syscall, which is
presumbably much faster than zgetdir().  But I backed down from this
for fear that all the magic going on in zgetdir() works around bugs in
some system's implementations of getcwd().


[-- Attachment #2: Fix for cygwin path stuff --]
[-- Type: application/x-patch, Size: 2610 bytes --]

                 reply	other threads:[~1999-02-01  2:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ulniilti6.fsf@bigfoot.com \
    --to=matt_armstrong@bigfoot.com \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).