X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=q7Cx2/7ydup1PRhUqneUyEkAxQ1RIrPg7CuMSz4T0kz B8jooZWyVriETS21VNc6GaEO6fxbOVN53n0CaRD0SUBTEnpK9XSBUV+WtTKC+IMV LlMi391vYfJkgnKWy0JnJyKwmUmkUKMZeg0aAx3AOy1PAPLWtsEhjRSOHncTb+Ug = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=giDti+MUBIcM1xU/E+cFZfQRzK8=; b=YoL27vu4zanxAkU3X wJucKOb502ZbvCu0OCPs3Qj9XKBr81PY7lOHULZ3Vvr0bHWQsRjVhsU59LJn26Vj UR/XkgxGR4I9BLKR0+cQlrnAcmQ4otJjkKARQxLJzEcvNwWt+i0x7NDQm+mMPvU3 9zwX/fcyMJACRe9EeqkBqK4cfU= 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: limerock03.mail.cornell.edu X-CornellRouted: This message has been Routed already. Message-ID: <53A0EF03.8060001@cornell.edu> Date: Tue, 17 Jun 2014 21:44:35 -0400 From: Ken Brown User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: emacs 24.3.1: output from async-shell-command is not always displayed References: <86zjhbpf9b DOT fsf AT w2139spb DOT ru DOT yotateam DOT com> In-Reply-To: <86zjhbpf9b.fsf@w2139spb.ru.yotateam.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 6/17/2014 2:22 PM, Filipp Gunbin wrote: > Here are the steps to reproduce. > > M-& echo "sleep 1; ps &" > /tmp/1.sh > > Then M-& /tmp/1.sh (few times). > > On my machine, sometimes it gives the output in the *Async Shell > Command* buffer, sometimes not. Without "sleep 1" the output is > displayed almost always. > > M-! /tmp/1.sh displays the output always. I'm seeing something different, but I'm running a pretest of emacs-24.4 rather than emacs-24.3. I find that the output is never displayed, with or without "sleep 1". But if I remove the "&" from 1.sh, then the output is always displayed (again, with or without "sleep 1"). Could you try installing the test release emacs-24.3.90-1 and see if you get the same results I'm getting? I don't know if there's a bug here or not. If there is, it's not specific to Cygwin; I get the same behavior on Fedora 20. Do you have a use case for wanting to call asynchronously a command that's already running asynchronously (because of the "&")? Ken -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple