bug with cat and backticks?
Norton Allen
allen@huarp.harvard.edu
Tue Jan 30 14:49:00 GMT 2007
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/
More information about the Cygwin
mailing list