bash-3.1-7 BUG

Kazuyuki Hagiwara hagiwara@zuken.co.jp
Wed Sep 13 01:31:00 GMT 2006


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 28442 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060913/3869979f/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zzz.sh
Type: application/octet-stream
Size: 135 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060913/3869979f/attachment-0001.obj>
-------------- next part --------------
--
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/


More information about the Cygwin mailing list