Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <002401c4650c$3bdf2830$b200a8c0@mindcooler> From: =?iso-8859-1?Q?Mikael_=C5sberg?= To: Subject: "cd" in bash script not being executed Date: Thu, 8 Jul 2004 18:54:28 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hello, I am using the latest Cygwin under Windows XP Professional. Lately, I've been playing around with the CVS version of emacs. I wrote a bash script that is supposed to check out the files and compile. However, it doesn't work, because the script fails to change directory. Here's the script: #!/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. Why and how do I fix it? I don't see any error messages pertaining to the cd command when running the script. I simply see that it fails to find configure.bat (since the directory wasn't changed) after cvs has finished. / Mikael -- 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/