This is the mail archive of the
mailing list for the Cygwin project.
Re: [ANNOUNCEMENT] Updated: bash-3.1-9
-----BEGIN PGP SIGNED MESSAGE-----
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 firstname.lastname@example.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v22.214.171.124 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html