Pavel Ivanoff wrote:
> Hi, all!
> 
> After updating bash to newest version on my server I've met problems
> with CR on my scripts. I've solved them with setting system variable
> SHELLOPTS to 'igncr'. And now they work fine when I login to the server
> via Terminal Services. But when I login to the server via sshd (last
> version came with cygwin) it ignores all environment variables set in
> the system - SHELLOPTS too. So I have all my CR problems again. I can't
> put SHELLOPTS in my .bashrc or .bash_profile scripts because bash
> complains it's readonly. And I can't move CR out of scripts because they
Why is your $HOME/.bashrc and $HOME/.bash_profile read only? These files
are user's and you should be able to edit them however you want.

> are checked out from CVS in one bunch with other text files that have to
> be with windows CR-LF.
> So where can I make my SHELLOPTS environment variable working in sshd
> too?
All the sensible proposed solution to this change are described in one
or more Cygwin bash package release announcements. Read them. One way to
work around this is to have the necessary directories mounted with text
mounts.

> 
> Sincerely,
> Pavel Ivanov

--
Vaclav Haisman

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to