X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <0105D5C1E0353146B1B222348B0411A2A15F606F@NIHMLBX02.nih.gov> References: <6991f8e00904210638x6465dd79p23065c7ec39b5b39 AT mail DOT gmail DOT com> <0105D5C1E0353146B1B222348B0411A2A15F606F AT NIHMLBX02 DOT nih DOT gov> Date: Tue, 21 Apr 2009 06:59:11 -0700 Message-ID: <6991f8e00904210659o754d3e50vaca5571544818891@mail.gmail.com> Subject: Re: Using real paths in ash From: Stephen Paul Weber To: "Buchbinder, Barry (NIH/NIAID) [E]" Cc: "cygwin AT cygwin DOT com" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Tue, Apr 21, 2009 at 06:50, Buchbinder, Barry (NIH/NIAID) [E] wrote: > Stephen Paul Weber wrote on Tuesday, April 21, 2009 9:39 AM: >> I really like the cygwin ash.exe, but I have a problem. =C2=A0It tries to >> replace C: with /cygdrive/c everywhere. =C2=A0This actually breaks my >> utilities, because they expect real Windows paths. =C2=A0mkdir -p >> "$TEMP/t" for example ends up creating >> C:\cygdrive\c\DOCUME~1\NEWUSE~1\LOCALS~1\Temp\t =C2=A0... which is >> obviously not what I want. > > man cygpath > > Don't forget quotes, e.g. > > $ mkdir -p "$(cygpath -u "${TEMP}/t")" Ok, I'm aware of cygpath, but the question was how can I actually fix the problem. See, I want to use it as a shell script interpreter on Windows, and if I throw cygpath calls all over my shell scripts, then they won't run on UNIX anymore. I've been poking at the ash and pdksh code to see if I can figure out at what point this broken behaviour gets introduced, but so far no luck with finding it or with compiling either of them. --=20 Stephen Paul Weber, @singpolyma Please see for how I prefer to be contacted. This message was sent from the GMail webmail interface. It's probably not signed. This is a problem. -- 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/