X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Fri, 8 Aug 2008 10:16:57 -0500 (CDT)
From: Tim McDaniel <tmcd@panix.com>
cc: cygwin@cygwin.com
Subject: RE: Bizarre Cygwin/Explorer/paths problem half-solved
In-Reply-To: <20080808064144.94C9485E51@pessard.research.canon.com.au>
Message-ID: <Pine.NEB.4.64.0808081010250.2416@panix1.panix.com>
References: <20080808064144.94C9485E51@pessard.research.canon.com.au>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-IsSubscribed: yes
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 Fri, 8 Aug 2008, Luke Kendall wrote:
> On  4 Aug, Gary R. Van Sickle wrote:
>>  	explorer /e,$XPATH & disown %-
>
> Don't try this variant, though, since it doesn't work:
>
>    explorer /e,"$XPATH" & disown %-
>
> What happens if you try that innocuous-looking variant is that
> Cygwin (or bash?) normalises the path /e,... to a windows path
> first, producing \e,...

I'm an utter fanatic about quoting to make sure that what I have in
variables isn't munged.  So I'm dismayed to learn that quoting can
*cause* munging and that something munges values in new and exciting
ways.

Is there any documentation on who rewrites arguments, under what
conditions, and how they're altered?

-- 
Tim McDaniel, tmcd@panix.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

