Re: Problem with cd in Cygwin scripts

2006-12-07 Thread David Bishop
Eric Blake wrote: According to David Bishop on 12/6/2006 9:06 PM: 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 Sounds like a case of DOS line endings on a binary mount. http://cygwin.com/ml/cygwin-announce/

Re: Problem with cd in Cygwin scripts

2006-12-07 Thread Jim Easton
Hi, Wed, 06 Dec 2006 David Bishop wrote: > #!/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 s

Re: Problem with cd in Cygwin scripts

2006-12-06 Thread Igor Peshansky
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-

Re: Problem with cd in Cygwin scripts

2006-12-06 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to David Bishop on 12/6/2006 9:06 PM: > 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 Sounds like a case of DOS line endings on a binary mount. http://

Re: Problem with cd in Cygwin scripts

2006-12-06 Thread Larry Hall (Cygwin)
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 manuall

Problem with cd in Cygwin scripts

2006-12-06 Thread David Bishop
Last night I updated Cygwin, and I've had problems with my scripts afterwards. I looked 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" comman

Problem with cd in Cygwin scripts

2006-12-06 Thread David Bishop
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