X-Spam-Check-By: sourceware.org
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Subject: RE:  Re: Error with changing directory - No such file or directory
Date: Mon, 2 Apr 2007 18:02:36 -0500
Message-ID: <297343D29C14AA4D822142893ABEAEF302F44746@srv1163ex1.flightsafety.com>
In-Reply-To: A<46118A99.5060101@users.sourceforge.net>
From: "Thrall, Bryan" <bryan.thrall@flightsafety.com>
To: <cygwin@cygwin.com>
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
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l32N2mtH013436

Matthew Woehlke wrote on Monday, April 02, 2007 5:59 PM:
> Ben Wylie wrote:
>> I have a batch file which runs bash and calls a bash script.
>> 
>> My batch file reads:
>> cd F:\cygwin\bin
>> bash --login -i deletescript.sh F:/Progra~1/NAVIEG/queues/
>> 
>> The bash script is:
>> 
>> #!/bin/bash
>> cd $1
>> F:/cygwin/bin/find . -type f -exec awk '(/various/ || /search/ ||
>> /keywords/) {print FILENAME}' {} \; | xargs rm
>> 
>> When I run the batch file I get:
>> 
>> F:\>cd F:\cygwin\bin
>> 
>> F:\cygwin\bin>bash --login -i deletescript.sh
>> F:/Progra~1/NAVIEG/queues/ 
>>> No such file or directoryine 2: cd: F:/Progra~1/NAVIEG/queues/
>> 
>> It doesn't seem to like the "cd F:/Progra~1/NAVIEG/queues/"
>> 
>> However if I load cygwin and type the commands directly, it all
>> works fine. 
>> 
>> Administrator@server ~
>> $ cd F:/Progra~1/NAVIEG/queues/
>> 
>> [snip]
> 
> Hmm, it seems you are not using the version of Cygwin that smacks you
> over the head with a wet tuna for doing such a thing (is that a
> feature in the Vista-only 1.7.0?). Try using POSIX paths instead of
> DOS-style paths, and see if that fixes it.

Yes, plus d2u will probably also help.

-- 
Bryan Thrall
FlightSafety International
Bryan.Thrall@flightsafety.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/


