delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/07/14:52:44

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Peter Davis <pd AT world DOT std DOT com>
Subject: Re: One system works, the other doesn't
Date: Wed, 7 May 2003 18:34:31 +0000 (UTC)
Lines: 79
Message-ID: <Xns937494A2F32Epdworldstdcom@80.91.224.249>
References: <Xns936E679AF108Fpdworldstdcom AT 80 DOT 91 DOT 224 DOT 249> <Pine DOT GSO DOT 4 DOT 44 DOT 0305011045020 DOT 25128-100000 AT slinky DOT cs DOT nyu DOT edu>
X-Complaints-To: usenet AT main DOT gmane DOT org
User-Agent: Xnews/06.02.16

Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu> wrote in
news:Pine DOT GSO DOT 4 DOT 44 DOT 0305011045020 DOT 25128-100000 AT slinky DOT cs DOT nyu DOT edu: 

> On Thu, 1 May 2003, Peter Davis wrote:
> 
>> Forgive me if this is a repost.  I tried to send this to the Cygwin
>> list the other day, but I never saw it appear.
>>
>> I have two systems running Cygwin: an NT4 (home) machine and a XP
>> (work) machine.  I've tried to make them as similar as possible, but
>> there are apparently some differences that elude me.  Specifically:
>>
>> 1) At home (NT4), .bashrc is automatically run when I fire up a bash
>>    shell.  At work, it doesn't, though I can manually run it with
>>    source ~/.bashrc
>>
>> 2) At home (NT4), the simple perl script I use to filter mutt
>> messages 
>>    before displaying them works beautifully.  At work (XP), the
>>    messages all display with ^M at the end of every line.  (This is
>>    recent ... since I just re-installed Cygwin on this machine.  It
>>    *used* to work.)
>>
>> 3) At home, mutt has no trouble telling me which MH mailboxes contain
>>    new mail.  At work, however, this function of mutt doesn't work.
>>    Once I open the mailbox, the new messages are correctly marked
>>    with 'N', but when I attempt to change mailboxes, mutt doesn't
>>    prompt me as it should.
>>
>> I've compared the output from 'cygcheck -s -v' on the two machines,
>> but I didn't see anything obvious.  (The work machine has more
>> packages installed.)  Can anyone suggest what might be responsible
>> for these quirks?
>>
>> Currently, the NT4 (home) machine is working *better* than the XP
>> (work) one.  Since I'll be upgrading the home machine to a new box
>> running XP shortly, I'd like to find out what's going on.
>>
>> Thanks very much!
>> -pd
> 
> Peter,
> 
> FYI, this doesn't belong on cygwin-apps...
> 
> Can *we* see the output of cygcheck on both machines?  And make that
> "cygcheck -svr" (note the "-r" flag).  Please attach it as an
> uncompressed text attachment, after making sure your mailer doesn't
> provide text attachments inline.

I have earlier provided the output of `cygcheck -svr` on both machines, 
but I haven't heard from you.

> 
> My guess about the .bashrc problem is that the machine that runs it
> doesn't give a "--login" flag to bash in cygwin.bat.  Alternatively,
> the default .bash_profile tests for the existence of .bashrc, and if
> you have weird permissions, 'test' might return the wrong result. 
> Compare the .bash_profile's on both machines (and /etc/profile).

I'll explore this.  It's not the most pressing issue, but it was another 
symptom of the difference between the two configurations.

> The WAG for the "^M"s is that you've accidentally changed the mount
> type from text to binary on your work machine when you reinstalled. 
> The "cygcheck -svr" output should show whether this is the case.

It appears to my untrained eye that both machines have all partitions 
mounted binmode.  I assumed this would be the correct mode if all my mail 
messages use \n as a line separator.  However, there seems to be some 
disparity between mutt and Perl about what the line separator is/should 
be, and I think that's where the problem lies.  The filter I wrote is a 
simple Perl script that takes every line of stdin and write it to stdout 
unless it's a Yahoo! advertisement.  This works on the home machine, but 
on the work machine gives me extra ^Ms.

Thank you.

-pd


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


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019