delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/12/01/10:16:35

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:cc
:subject:references:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=fkRVE9PU/vBNdAHR
2OgsWHgq+W7uDNO/Z8MhuVEnH0JXDF5O+KTsDs9rT2ml9dJStlbFtUDmGpIN9NhY
+dHTPBBPlAYDSSH9tGzG8iN3s/q+l2gACW1WdWUc5iXHP+syKXFDJ4K1mL3dutIA
9evChgSnQ7f2J4r3uOY3RecluL4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:cc
:subject:references:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=kbwvoVc8VTfhVd6n33LMye
yLwQc=; b=MCFY2yfibfFnH2yugYowgWutu5YCZIfQzb3cI9uvpizTX3e00LTrrA
O6QENH49BY3rApxMAYJq/jJlJdDV2v4dwSdIkSpTt/Oz5MWwgKOgUcULe01510jQ
VuCERw/x2Vxeik70DPXjmfoTaBBruekuoRqpyMBvwf2rr54eEJysA=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=BAYES_50,FREEMAIL_FROM,RDNS_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no version=3.3.2
X-HELO: mail-we0-f175.google.com
X-Received: by 10.180.185.201 with SMTP id fe9mr14396330wic.63.1385910951650; Sun, 01 Dec 2013 07:15:51 -0800 (PST)
Message-ID: <529B529F.7080608@googlemail.com>
Date: Sun, 01 Dec 2013 15:15:43 +0000
From: David Kilroy <kilroyd AT googlemail DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131005 Icedove/17.0.9
MIME-Version: 1.0
To: Charles Butterfield <charles DOT butterfield AT nextcentury DOT com>
CC: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: chere + mintty doesn't work with mapped drives
References: <00ce27600b2e404cbb8f9e56c3994e8c AT CO2PR07MB556 DOT namprd07 DOT prod DOT outlook DOT com> <e438b5ebbe69401b843342394f5a5ea9 AT CO2PR07MB556 DOT namprd07 DOT prod DOT outlook DOT com> <5299A4BF DOT 8070201 AT gmail DOT com> <e25e9576d2a2415ea90019117708d9d5 AT CO2PR07MB556 DOT namprd07 DOT prod DOT outlook DOT com>
In-Reply-To: <e25e9576d2a2415ea90019117708d9d5@CO2PR07MB556.namprd07.prod.outlook.com>

On 30/11/13 18:29, Charles Butterfield wrote:
>> -----Original Message-----
>> From: Dave Kilroy [mailto:kilroyd AT googlemail DOT com]
>> The xhere script should pass y:\apps to cygpath to get the cygwin path, which
>> should be /cygdrive/y/apps. IIRC /cygdrive/y may not be visible via ls, but it
>> should be usable. I'm guessing the path is failing the directory test... in which
>> case adding a trailing else to always cd $CHERE_DIR would fix things for you
>
> I think I've narrowed down the problem to the terminal emulator.
>
> First - I did try modifying xhere to do a "cd $CHERE_DIR" (and then $NETWORK_PATH)
> but neither variable worked.
>
> I then noticed that if I start bash from a cmd.exe emulator (and adjust the path to
> Include /bin), that I can see (and cd to) a mapped drive.  But I cannot "see" (via ls)
> the mapped drive when using mintty.
>
>  From cmd.exe+bash: (Y: is the mapped drive)
> --------------------------------------------------------
> $ ls -l /cygdrive/
> total 16
> d---------+ 1 TrustedInstaller TrustedInstaller 0 Nov 30 11:37 c/
> drwx------+ 1 SYSTEM           SYSTEM           0 Nov 30 11:37 e/
> drwx------+ 1 SYSTEM           SYSTEM           0 Nov 30 11:37 g/
> drwxrwxrwx  1 ????????         ????????         0 Feb  2  2013 y/
>
> cb AT hpc15 /usr/bin
> $ cd /cygdrive/y
>
> cb AT hpc15 /cygdrive/y
> $ ls
> Archive                                    Photos
> Audio                                      RECYCLER
> Backups                                    Reunion 2006 Photos
> ...
>
>
>
>  From mintty+bash: (Y: is the mapped drive)
> --------------------------------------------------------
> cb AT hpc15 ~
> $ ls -l /cygdrive/
> total 16
> d---------+ 1 TrustedInstaller TrustedInstaller 0 Nov 30 11:37 c
> drwx------+ 1 SYSTEM           SYSTEM           0 Nov 30 11:37 e
> drwx------+ 1 SYSTEM           SYSTEM           0 Nov 30 11:37 g
>
> cb AT hpc15 ~
> $ cd /cygdrive/y
> -bash: cd: /cygdrive/y: No such file or directory
>
> cb AT hpc15 ~
>
>
> I suspect that whatever is going on that affects "ls" and "cd" is also
> affecting chere/xhere.
>
> Not sure what the next step should be.

Can you run the following commands from mintty running bash vs cmd 
running bash:

cygpath -u "y:\apps"
test -d /cygdrive/y/apps
echo $?

Result of the first command should be /cygdrive/y/apps
2nd command shouldn't output anything
Result of 3rd command should be 0 (true)


Dave.

--
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

- Raw text -


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