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:from:to:cc:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; q=dns; s=default; b=vk04Dva1W1CpNMxKhUEgOErZPUgyY QXUtbMvaM6OkGGpyL5QYB/Q/sN65QyeJAuNBGYQdFIcCQs4j9Rck0TwTo5EIULqi qt0wg/cb/8zOoQkatmKkhS4NlQ0xyL9G33uZXzJvpzgJAFVwSgdC3pS6Bf6+nwHI 3CRkXoKUyjLgKU= 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:from:to:cc:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; s=default; bh=KJ+0XlqdCMSnAa4FnZSi94bRKEQ=; b=sIE ptrvA6kKLC9sGIgMGkzYxaT9u6E29XemMnq8hj4PVe8rkrm36hP8Aq+3F/3PGL0+ zDr7ZreqFZn1KMdyeMA6HXupkNyL7dbW1lmh8qQewAh4N0k/JVqwAN8m3vYWyNJS 9xtbWYsQLejbvsnLG682wkCiaoiKfHMo6X/8iLlk= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=4.4 required=5.0 tests=AWL,BAYES_50,RDNS_NONE,SPF_NEUTRAL autolearn=no version=3.3.2 X-HELO: na01-bn1-obe.outbound.protection.outlook.com From: Charles Butterfield To: Dave Kilroy , "cygwin AT cygwin DOT com" CC: Charles Butterfield Subject: RE: chere + mintty doesn't work with mapped drives Date: Sat, 30 Nov 2013 18:29:49 +0000 Message-ID: References: <00ce27600b2e404cbb8f9e56c3994e8c AT CO2PR07MB556 DOT namprd07 DOT prod DOT outlook DOT com> <5299A4BF DOT 8070201 AT gmail DOT com> In-Reply-To: <5299A4BF.8070201@gmail.com> x-forefront-prvs: 00462943DE x-forefront-antispam-report: SFV:NSPM;SFS:(199002)(189002)(13464003)(76576001)(33646001)(87936001)(54316002)(56776001)(81816001)(51856001)(50986001)(76796001)(46102001)(47976001)(76786001)(4396001)(2656002)(87266001)(80976001)(74876001)(74706001)(54356001)(47736001)(31966008)(79102001)(85306002)(59766001)(83072001)(69226001)(76482001)(83322001)(19580405001)(81342001)(49866001)(81686001)(53806001)(19580395003)(74366001)(74662001)(74316001)(80022001)(63696002)(81542001)(77982001)(47446002)(66066001)(65816001)(74502001)(90146001)(56816005)(24736002)(460985004);DIR:OUT;SFP:;SCL:1;SRVR:CO2PR07MB554;H:CO2PR07MB556.namprd07.prod.outlook.com;CLIP:72.81.217.80;FPR:;RD:InfoNoRecords;A:1;MX:1;LANG:en; Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: nextcentury.com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id rAUIUTwP003598 > -----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. -- Charlie -- 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