X-Recipient: archive-cygwin@delorie.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=uyCBNeVAr1NQg/Qm0mUIK6GWem9XL
	WmyX8sVc9fzbaer8hk0cIGipcKHQeM1atI+1WZZ2zHY7lofWsoBY91A0bj5FOdVg
	O7JxbgQKrx8V7Rb9BqkOHtauIK3yIJNopZl722W5spqEZivY843cCv5cYJ2+tuv9
	sGBd63cXcmsbgE=
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=0KOuaYaTcaiyee2KH32Xi1qa8NM=; b=KVA
	HG1hILS9KAmCJGKxeGZMDPDBJL1NGE1ByvvKmG+bZ7o821Sy2gtR1cqtS67Yh9i4
	IwRIp5b7tA9GNPwNunm8bt6FAgU1Qi+6w6TzHqmC+HbH15Mh6gOIA2Q/GAt2ECx0
	1CqDQKzjsF/5g8wX9pnVcvn4+VXrn3bEPC6efKD4=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.6 required=5.0 tests=AWL,BAYES_00,MIME_BASE64_BLANKS,RDNS_NONE,SPF_NEUTRAL autolearn=no version=3.3.2
X-HELO: na01-by2-obe.outbound.protection.outlook.com
From: Charles Butterfield <charles.butterfield@nextcentury.com>
To: Dave Kilroy <kilroyd@googlemail.com>,
        "cygwin@cygwin.com"	<cygwin@cygwin.com>
CC: Charles Butterfield <charles.butterfield@nextcentury.com>
Subject: RE: chere + mintty doesn't work with mapped drives
Date: Mon, 2 Dec 2013 23:58:23 +0000
Message-ID: <cb96aa9da1e44e2b825f20614a91c484@CO2PR07MB556.namprd07.prod.outlook.com>
References: <00ce27600b2e404cbb8f9e56c3994e8c@CO2PR07MB556.namprd07.prod.outlook.com> <e438b5ebbe69401b843342394f5a5ea9@CO2PR07MB556.namprd07.prod.outlook.com> <5299A4BF.8070201@gmail.com> <e25e9576d2a2415ea90019117708d9d5@CO2PR07MB556.namprd07.prod.outlook.com> <529B529F.7080608@googlemail.com> <9ce71b17ad604e5c943e3c3731b145d1@CO2PR07MB556.namprd07.prod.outlook.com> <20131201210920.GA11800@calimero.vinschen.de> <529CDBE8.8000003@gmail.com>
In-Reply-To: <529CDBE8.8000003@gmail.com>
x-forefront-prvs: 0048BCF4DA
x-forefront-antispam-report: SFV:NSPM;SFS:(479174003)(51704005)(199002)(189002)(13464003)(24454002)(49866001)(74662001)(74876001)(83072001)(4396001)(54356001)(76576001)(74706001)(51856001)(50986001)(76796001)(87266001)(81816001)(46102001)(47976001)(31966008)(56816005)(90146001)(54316002)(81542001)(74366001)(74316001)(2656002)(87936001)(76786001)(47736001)(19580395003)(80976001)(76482001)(69226001)(83322001)(81342001)(63696002)(19580405001)(74502001)(56776001)(85306002)(79102001)(77982001)(81686001)(65816001)(59766001)(47446002)(33646001)(66066001)(80022001)(53806001)(85852002)(24736002);DIR:OUT;SFP:;SCL:1;SRVR:CO2PR07MB556;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="utf-8"
MIME-Version: 1.0
X-OriginatorOrg: nextcentury.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id rB2Nx3FV028023

> -----Original Message-----
> From: Dave Kilroy [mailto:kilroyd@googlemail.com]
> On 01/12/2013 21:09, Corinna Vinschen wrote:
> > Are you starting mintty with "run as administrator" by any chance?
> Corrina's right - check that the same user is being used in both cases.
> I don't think this would explain why it's not working from the context menus
> though. Finding out why bash under mintty doesn't think /cygdrive/y/apps is
> a directory is the key.

SOLVED

Yes, I was starting mintty "as admin" and yes this was the culprit.
I was doing this by using a shortcut (similar, but not identical to the installed
"Cygwin Terminal" shortcut), that had the checkbox 
"Compatibility|Run this program as an administrator" enabled.

I ASSUMED this would only affect mintty when launched from this shortcut.

HOWEVER, it seems that this changes a property associated with mintty
regardless of how it is launched.  Apparently another "Wonder of Windows".

Unchecking the "run as admin" fixed the problem associated with accessing
the mapped drives everywhere (including the "Bash Prompt Here" xhere
Processing).

The reason I was running as admin was that many of the network centric
scripts that I use frequently during certain phases of various projects seem
to require admin privs and simply fail without any attempt to escalate (which
I seem to recall is due to a mismatch between the Windows and Unix
Security models).  I guess I'll have to rethink that approach.
 
Any suggestions on how to have a shortcut (or something similar) that
runs mintty as admin, but has no global effect on other mintty launches?

