| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <46118691.6010408@benwylie.co.uk> |
| Date: | Mon, 02 Apr 2007 23:41:21 +0100 |
| From: | Ben Wylie <ben AT benwylie DOT co DOT uk> |
| User-Agent: | Thunderbird 2.0b2 (Windows/20070116) |
| MIME-Version: | 1.0 |
| To: | Cygwin Mailinglist <cygwin AT cygwin DOT com> |
| Subject: | Error with changing directory - No such file or directory |
| X-ArGoMail-Authenticated: | benout AT benwylie DOT co DOT uk |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.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 |
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/
Administrator AT server /cygdrive/f/Progra~1/NAVIEG/queues
$
This script and setup was working with my previous version of cygwin, I
guess I must have changed something in the upgrade which has rendered it
incorrect, but can't work it out.
If anyone can give me pointers as to why it might be failing, I would be
grateful.
Thanks
Ben
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |