Re: "cd" in bash script not being executed

2004-09-11 Thread Aaron Stephanic
Sorry, it was my understanding of scripting that was broken. My script wasn't permanently changing directories so I thought "cd" wasn't working. But amazingly enough you actually can't permanently change directories in a script without a workaround... you have to "source" the script instead o

Re: "cd" in bash script not being executed

2004-09-10 Thread Christopher Faylor
On Sat, Sep 11, 2004 at 12:43:36PM +0900, Aaron Stephanic wrote: >I'm having the same problem as in this thread: >http://www.cygwin.com/ml/cygwin/2004-07/msg00197.html > >"cd" in bash scripts is not working. Is this a bug? Let's think about this for a second. If "cd" wasn't working in bash scrip

Re: "cd" in bash script not being executed

2004-09-10 Thread Aaron Stephanic
I'm having the same problem as in this thread: http://www.cygwin.com/ml/cygwin/2004-07/msg00197.html "cd" in bash scripts is not working. Is this a bug? Aaron Stephanic -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documen

Re: "cd" in bash script not being executed

2004-07-08 Thread Michael D. Crawford
> 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.

RE: "cd" in bash script not being executed

2004-07-08 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of 3APA3A > Sent: 08 July 2004 18:26 > MÅ> cvs -z3 -d:ext:[EMAIL PROTECTED]:/cvsroot/emacs co emacs > points exist (in your case problem is probably with > /cvsroot, create cvsroot directory in cygwin root). N the cvsroot

RE: "cd" in bash script not being executed

2004-07-08 Thread Dave Korn
> -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:[EMAIL PROTECTED]:/cvsroot/emacs co emacs > cd emacs/nt/ > configure.bat --with-msvc > mv ../lisp/url/vc-dav.el ../lisp/url/no.vc-dav.el.no

Re: "cd" in bash script not being executed

2004-07-08 Thread 3APA3A
Dear Mikael Åsberg, A most probable you have directory which is mounted, but no directory entry is created. Run `mount` and check if all directories used as mount points exist (in your case problem is probably with /cvsroot, create cvsroot directory in cygwin root). --Thursday, July 8, 200

"cd" in bash script not being executed

2004-07-08 Thread Mikael Åsberg
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: #!