delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/07/01:09:22

X-Spam-Check-By: sourceware.org
Date: Thu, 7 Dec 2006 01:08:58 -0500 (EST)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: Problem with cd in Cygwin scripts
In-Reply-To: <4577957C.7020908@cygwin.com>
Message-ID: <Pine.GSO.4.63.0612070108090.21550@access1.cims.nyu.edu>
References: <45779074 DOT 5080607 AT vhdl DOT org> <4577957C DOT 7020908 AT cygwin DOT com>
MIME-Version: 1.0
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

On Wed, 6 Dec 2006, Larry Hall (Cygwin) wrote:

> David Bishop wrote:
> > Last night I updated Cygwin, and I've had problems with my scripts
> > afterwards.  I tried 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
> >
> > Any ideas?
>
> Sure.  First, don't send more than one copy of your report to the list.
> Second, read and follow the problem reporting guidelines found here:
>
> <http://cygwin.com/problems.html>
>
> That will give us something to go on.  Two other things to try before
> going through all that:
>
>   1. Reboot.
>   2. Make sure /bin/sh.exe and /bin/bash.exe are the same size and
>      date.  If they aren't, copy /bin/bash.exe to /bin/sh.exe and
>      try your script again.

Oh, and read the bash announcement and run your script through d2u.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for "nothing left to lose"...  -- Janis Joplin

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