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]

Bash 3.1.9 and 3.2.4: igncr setting not effective for 'source'd files


Unfortunately I have to report that both versions of bash don't
implement the igncr setting if
commands are read from a sourced file.

For example, I have /etc/profile set up to issue

shopt -s igncr #

as the first line (or

set -o igncr; export SHELLOPTS #

for version 3.2.4)

If I do

unix2dos /etc/profile

the command

source /etc/profile

produces a series of error messages, indicating that <cr> characters
are not being
ignored.

If I issue the file as a script,  e.g.
bash /etc/profile

there are no errors.

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