delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/08/13:34:28

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
From: "Dave Korn" <dk AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: "cd" in bash script not being executed
Date: Thu, 8 Jul 2004 18:32:46 +0100
MIME-Version: 1.0
In-Reply-To: <002401c4650c$3bdf2830$b200a8c0@mindcooler>
Message-ID: <NUTMEGs84htn04ThNZ300000780@NUTMEG.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 08 Jul 2004 17:32:46.0515 (UTC) FILETIME=[95320830:01C46511]
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i68HY6P4015851

> -----Original Message-----
> From: cygwin-owner On Behalf Of Mikael Åsberg
> Sent: 08 July 2004 17:54

> #!/bin/bash
> export CVS_RSH="ssh"
> cvs -z3 -d:ext:anoncvs AT savannah DOT gnu DOT org:/cvsroot/emacs co emacs
> cd emacs/nt/
> configure.bat --with-msvc
> mv ../lisp/url/vc-dav.el ../lisp/url/no.vc-dav.el.no
> nmake bootstrap
> nmake install
> 
> The cd emacs/nt/ command isn't executed so the commands 
> following it fails.

  Wrong.  The cd is executed.  But since you haven't got . in your $PATH,
the configure.bat doesn't run.  You want to prefix the line that invokes it
with the current-directory-path, like so:

> ./configure.bat --with-msvc

  To solve problems like this yourself, you'd generally want to try
instrumenting your script with some diagnostic printouts, like this:

> cvs -z3 -d:ext:anoncvs AT savannah DOT gnu DOT org:/cvsroot/emacs co emacs
> pwd ; ls
> cd emacs/nt/ ; pwd ; ls
> pwd ; ls
> pwd ; configure.bat --with-msvc
> mv ../lisp/url/vc-dav.el ../lisp/url/no.vc-dav.el.no

...which would have shown you at once that the cd instruction did indeed
work.


    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


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