Hellow, friends.

I have extracted very short script which fails by bash-3.1-7,
while runs successfully 3.1-6 ofcorse.

While the attached script zzz.sh has \r\n style end of line format,
it shoud run normally since accessed through "text mount" point.

The probrem seems to happen at the line
curDir="`/bin/pwd`"
 
Please  fix this probrem.

[~/work]
[~/work] bash -version
GNU bash, version 3.1.17(7)-release (i686-pc-cygwin)
Copyright (C) 2005 Free Software Foundation, Inc.
[~/work]
[~/work] bash0911 --version
GNU bash, version 3.1.17(6)-release (i686-pc-cygwin)
Copyright (C) 2005 Free Software Foundation, Inc.
[~/work]
[~/work] mount | grep tmp
D:\users\hagiwara\tmp on /tmp type user (binmode)
D:\users\hagiwara\tmp on /tmp2 type system (textmode)
[~/work]
[~/work] bash0911 /tmp2/zzz.sh
finishing
[~/work]
[~/work] bash  /tmp2/zzz.sh
/tmp2/zzz.sh: line 3: ify: command not found
/tmp2/zzz.sh: line 4: rify_environment: command not found
/tmp2/zzz.sh: line 5: in/echo: No such file or directory
/tmp2/zzz.sh: line 6: xit: command not found
[~/work]
[~/work] bash  -x /tmp2/zzz.sh
++ /bin/pwd
+ curDir=/users/hagiwara/work
+ ify that appropriate environment variables are set
/tmp2/zzz.sh: line 3: ify: command not found
+ rify_environment
/tmp2/zzz.sh: line 4: rify_environment: command not found
+ in/echo finishing
/tmp2/zzz.sh: line 5: in/echo: No such file or directory
+ xit 0
/tmp2/zzz.sh: line 6: xit: command not found
[~/work]
[~/work] cat /tmp2/zzz.sh
#!/bin/bash
curDir="`/bin/pwd`"
#Verify that appropriate environment variables are set
#verify_environment
/bin/echo finishing
exit 0
[~/work]
--------------------------------------------------
Kazuyuki Hagiwara

Attachment: cygcheck.out
Description: Binary data

Attachment: zzz.sh
Description: Binary data

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

Reply via email to