X-Spam-Check-By: sourceware.org Message-ID: <45BF53FA.6030606@huarp.harvard.edu> Date: Tue, 30 Jan 2007 09:19:38 -0500 From: Norton Allen User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) MIME-Version: 1.0 To: Eric Blake CC: cygwin list Subject: Re: bug with cat and backticks? References: <45BEB4C5 DOT 8030508 AT huarp DOT harvard DOT edu> <45BEC1C2 DOT 8050107 AT byu DOT net> In-Reply-To: <45BEC1C2.8050107@byu.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass (ent.arp.harvard.edu: 10.0.0.175 is authenticated by a trusted mechanism) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Eric Blake wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >According to Norton Allen on 1/29/2007 8:00 PM: > > >>>> PID=`cat $PIDFILE` >>>> >>>> >>>No, this is a text mount: >>> >>> > >That's the answer. You are creating PIDFILE with \r\n line endings, but >cat always reads in binary mode. > >Try PID=`cat $PIDFILE | d2u` instead. Or try using the igncr shell option. > > OK... Note that 'I' am not doing this. This is part of the apachectl script, and sticking | d2u in there isn't a very portable solution. Perhaps I should just adjust mount points so /var/run is a binary mount point. -- 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/