This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ANNOUNCEMENT] Updated: bash-3.1-9


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to David Picton on 10/4/2006 10:13 AM:
>> (shopt -s igncr) 2>/dev/null && eval 'shopt -s igncr';#
> 
> Alternatively, you can set the environment variable BASH_ENV to the name
> of a
> file containing startup commands for all bash scripts.  If the above
> command is
> issued in the file, the shopt command will be set before the script is
> read - and
> DOS-format scripts will therefore execute correctly without modification.

Or even experiment with the SHELLOPTS environment variable.  If you set it
in windows, even the first run of bash will obey igncr; or, from within
bash, if you do 'export SHELLOPTS' to convert it from a shell variable to
an environment variable, then further bash invocations will inherit the
setting of this option, without having to edit every script.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----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

iD8DBQFFJGRR84KuGfSFAYARAhutAKCf9snR/167jRfRYFtyqlbFB4DTmgCdEcqg
i2HyqvlWmZht37VVfCbNPs0=
=h78P
-----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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]