X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Fri, 16 Jul 2010 18:01:31 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Win64 FS redirectors and Cygwin
Message-ID: <20100716160131.GG6944@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <4C406FFF.5040106@users.sourceforge.net> <20100716152201.GB24200@calimero.vinschen.de> <4C40778C.9040002@users.sourceforge.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <4C40778C.9040002@users.sourceforge.net>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Jul 16 23:15, JonY wrote:
> On 7/16/2010 23:22, Corinna Vinschen wrote:
> >On Jul 16 22:43, JonY wrote:
> >>Hi,
> >>
> >>While working with bash auto-completion in C:\Windows\System32, I
> >>noticed that win64 FS redirectors are not disabled.
> >>
> >>This caused some strangeness from the user perspective, but Cygwin
> >>is a normal Win32 program from Window's perspective.
> >>
> >>Should FS redirection be disabled for Cygwin? Or at least a way to
> >>disable it?
> >
> >No.  Just use /cygdrive/c/Windows/Sysnative as path to the 64 bit
> >binaries.
> >
> 
> Thanks, I didn't know ls works with sysnative too.

It's a valid OS path.  The unfortunate side effect of its virtuality is
that it's not listed in a readdir call, so file completion doesn't work.
However, there's a funny workaround.  Just start an elevated bash:

  $ cd /cygdrive/c/Windows
  $ export CYGWIN=winsymlinks
  $ ln -s temp-file-name sysnative
  $ cmd /c ren temp-file-file.lnk sysnative.lnk

Now try

  $ cd
  $ cd /cygdrive/c/Windows/sysn<TAB>


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

