delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/01/28/15:08:43

X-Spam-Check-By: sourceware.org
Message-ID: <45BD02B4.6090907@huarp.harvard.edu>
Date: Sun, 28 Jan 2007 15:08:20 -0500
From: Norton Allen <allen AT huarp DOT harvard DOT edu>
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
MIME-Version: 1.0
To: cygwin list <cygwin AT cygwin DOT com>
Subject: Re: bug with built-in commands in bash when redirecting output
Received-SPF: pass (ent.arp.harvard.edu: 24.61.82.50 is authenticated by a trusted mechanism)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

>
>
>The following one liner illustrates a bug in sh:
>$ /bin/bash -c '/bin/bash -cx '\''x=`echo hello`'\''' > @x
>++ echo hello
>+ x=$'hello\r'
>$
>  
>
I'm wondering if the problem I am seeing is from the same source. I find 
that 'apachectl stop' no longer works since a recent cygwin update. I 
can see that the PIDFILE is being written with a \r\n line ending. 
'apachectl stop' then reads the file with

    PID=`cat $PIDFILE`

$PID then includes the \r character, and the subsequent kill operation 
fails as a result.

Is there something that changed recently that is causing this to fail 
now? I'm pretty sure this worked until recently.

Norton Allen


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