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

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
Date: Thu, 08 Jul 2004 13:21:52 -0400
From: "Michael D. Crawford" <crawford AT goingware DOT com>
Subject: Re: "cd" in bash script not being executed
To: cygwin AT cygwin DOT com
Message-id: <40ED82B0.8020709@goingware.com>
Organization: GoingWare Inc. - Expert Software Development and Consulting
MIME-version: 1.0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113
X-IsSubscribed: yes

 > the script fails to change directory.

Just to make sure, put the following on the line after #!/bin/bash

set -x

and then before and after the line with the cd command:

pwd

Are you sure it's not changing directory, or could something else be going wrong?

Mike
-- 
Michael D. Crawford
GoingWare Inc. - Expert Software Development and Consulting
http://www.goingware.com
crawford AT goingware DOT com

   Tilting at Windmills for a Better Tomorrow.

     "I give you this one rule of conduct. Do what you will, but speak
      out always. Be shunned, be hated, be ridiculed, be scared,
      be in doubt, but don't be gagged."
      -- John J. Chapman, "Make a Bonfire of Your Reputations"
         http://www.goingware.com/reputation/

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