delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/06/23:06:58

X-Spam-Check-By: sourceware.org
Message-ID: <4577934F.8090100@vhdl.org>
Date: Wed, 06 Dec 2006 23:06:39 -0500
From: David Bishop <dbishop AT vhdl DOT org>
User-Agent: Thunderbird 1.5.0.8 (Windows/20061025)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Problem with cd in Cygwin scripts
X-IsSubscribed: yes
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

Last night I updated Cygwin, and I've had problems with my scripts 
afterwards.  I looked on the web and found some similar issues from 
2004, but with no resolutions.

I am running:
 > uname -a
CYGWIN_NT-5.1 davesxp 1.5.22(0.156/4/2) 2006-11-13 17:01 i686 Cygwin

I can manually use the "cd" command without problems, but when I try to 
use it in a script, I just get:
: No such file or directory

The top of the script that I am trying to run looks like this:

#!/bin/sh
#
rm -f putfile
echo "put supernova.html" > putfile
# Check the sn2006 directory
cd sn2006
down=0
.....
cd ../sn2005

Manually, all of these cd commands work, but when I put them in a script 
I only get errors.  I run the script with:
. /home/dave/scripts/buildput

I am running them in a directory:
/cygdrive/c/Documents and Settings/dave/My Documents/sn
Which I have an "sn" alias to get to.

Any ideas?

-- 
NAME:     David W. Bishop           INTERNET: dbishop AT vhdl DOT org

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