Mail Archives: cygwin/2006/09/12/02:52:16
Hellow everyone.
I have tried to evaluate bash-3.1-7.
Some hundreds of line script fails running dos file(ending line with \r\n)
script on text mode mount.
-----------------
$ mount | grep tmp
D:\users\hagiwara\tmp on /tmp type user (binmode)
D:\users\hagiwara\tmp on /tmp2 type system (textmode)
$
$ bash --version
GNU bash, version 3.1.17(7)-release (i686-pc-cygwin)
Copyright (C) 2005 Free Software Foundation, Inc.
$
$ bash0911 --version
GNU bash, version 3.1.17(6)-release (i686-pc-cygwin)
Copyright (C) 2005 Free Software Foundation, Inc.
$ bash0911 /tmp/xxx
Processing configuration file /users/hagiwara/AA/Config
Platforms =
Build tree root = /cygdrive/V
$
$ bash0911 /tmp2/xxx
Processing configuration file /users/hagiwara/AA/Config
Platforms =
Build tree root = /cygdrive/V
$
$ bash /tmp/xxx
: command not found
'tmp/xxx: line 37: syntax error near unexpected token `
'tmp/xxx: line 37: `verify_environment()
$
$ bash /tmp2/xxx
/tmp2/xxx: line 377: riate: command not found
/tmp2/xxx: line 384: tart: command not found
/tmp2/xxx: line 385: art_msg: command not found
/tmp2/xxx: line 386: cess: command not found
/tmp2/xxx: line 387: ess_config: command not found
$
-----------------
I am soryy I can't attach the full script file.
The probrem hapens around the portion below.
It's strange that some parts of comment lines are tried to execute.
-----------------
375 #
376 parse_parameters $*
377
378 #
379 # Verify that appropriate environment variables are set
380 #
381 verify_environment
382
383 #
....
389 # Output start message
390 #
391 output_start_msg
392
393 #
394 # Process the configuration file
395 #
396 process_config
397
-----------------
--------------------------------------------------
Kazuyuki Hagiwara
) -----Original Message-----
) From: cygwin-owner AT cygwin DOT com
) [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Eric Blake
) Sent: Saturday, September 09, 2006 12:18 PM
) To: cygwin AT cygwin DOT com
) Subject: [ANNOUNCEMENT] Updated [experimental]: bash-3.1-7
)
) -----BEGIN PGP SIGNED MESSAGE-----
) Hash: SHA1
)
) A new release of bash, 3.1-7, is available for experimental use.
)
) NOTICE:
) =======
) This version removes several outdated #defines that were once
) necessary in older versions of cygwin, but which made bash on
) cygwin different and slower than bash on Linux. In the
) process, there is a major change in behavior - bash no longer
) forces text mode when reading scripts. If your script
) resides on a text mount point, you will not notice any difference.
) If your script resides on a binary mount point, and has
) normal unix \n line endings, you may notice a slight speedup.
) But if your script resides on a binary mount point, and has
) \r\n line endings, bash will most likely encounter syntax
) errors. The fix is simple - use d2u to convert script files
) residing on a binary mount point to be unix files, or if you
) must use DOS lines, use a text mount point. Because of this
) change in behavior, I am marking this version experimental
) for a while until I can gauge from mailing list traffic that
) it is safe to promote to current.
)
) NEWS:
) =====
) This is a minor patch release. The only change is removing
) outdated cygwin-specific #ifdefs that are no longer necessary
) in light of improvements in cygwin itself. Remember, you
) must not have any bash or /bin/sh instances running when you
) upgrade the bash package. This release will work with
) cygwin-1.5.21-1 or later.
)
) DESCRIPTION:
) ============
) Bash is an sh-compatible shell that incorporates useful
) features from the Korn shell (ksh) and C shell (csh). It is
) intended to conform to the IEEE POSIX P1003.2/ISO 9945.2
) Shell and Tools standard. It offers functional improvements
) over sh for both programming and interactive use. In
) addition, most sh scripts can be run by Bash without modification.
)
) As of the bash 3.0 series, cygwin /bin/sh defaults to bash,
) not ash, similar to Linux distributions.
)
) UPDATE:
) =======
) To update your installation, click on the "Install Cygwin
) now" link on the http://cygwin.com/ web page. This downloads
) setup.exe to your system.
) Save it and run setup, answer the questions and pick up
) 'bash' in the 'Base' category (it should already be selected).
)
) DOWNLOAD:
) =========
) Note that downloads from sources.redhat.com (aka cygwin.com)
) aren't allowed due to bandwidth limitations. This means that
) you will need to find a mirror which has this update, please
) choose the one nearest to you:
) http://cygwin.com/mirrors.html
)
) QUESTIONS:
) ==========
) If you want to make a point or ask a question the Cygwin
) mailing list is the appropriate place.
)
) - --
) Eric Blake
) volunteer cygwin bash maintainer
)
) CYGWIN-ANNOUNCE UNSUBSCRIBE INFO:
) =================================
) To unsubscribe to the cygwin-announce mailing list, look at the
) "List-Unsubscribe: " tag in the email header of this message.
) Send email to the address specified there. It will be in the format:
)
) cygwin-announce-unsubscribe-YOU=YOURDOMAIN DOT COM AT cygwin DOT com
)
) If you need more information on unsubscribing, start reading here:
)
) http://sources.redhat.com/lists.html#unsubscribe-simple
)
) Please read *all* of the information on unsubscribing that is
) available starting at this URL.
)
) -----BEGIN PGP SIGNATURE-----
) Version: GnuPG v1.4.2.1 (Cygwin)
) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
)
) iD8DBQFFAjJR84KuGfSFAYARAix9AKCkcaAfFUxIgQujb7EJy77y8v8qJACfYQQw
) WO+SNQ+1l3SV8tWmEiHFpp4=
) =NEls
) -----END PGP SIGNATURE-----
)
) --
) 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/
)
)
--
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 -