delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/02/18:59:22

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Matthew Woehlke <mw_triad AT users DOT sourceforge DOT net>
Subject: Re: Error with changing directory - No such file or directory
Date: Mon, 02 Apr 2007 17:58:33 -0500
Lines: 39
Message-ID: <46118A99.5060101@users.sourceforge.net>
References: <46118691 DOT 6010408 AT benwylie DOT co DOT uk>
Mime-Version: 1.0
Cc: ben AT benwylie DOT co DOT uk
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.4.0
In-Reply-To: <46118691.6010408@benwylie.co.uk>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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 AT 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.

-- 
Matthew
Vs lbh pna ernq guvf jvgubhg fbsgjner, lbh ner n FREVBHF areq! -- 
Nqncgrq sebz Znggurj Jva (ivz-qri znvyvat yvfg)


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019