From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#71049: async-shell-command ends with "Process *Async Shell Command* finished" when remote "direct-async-process" Date: Sat, 25 May 2024 17:40:31 +0300 Message-ID: References: <3a497741-2ad0-4919-b7c9-cdb36b0eb455@gutov.dev> <87msoevy9x.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22164"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 71049@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 25 16:41:07 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sAsa2-0005WS-Dm for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 May 2024 16:41:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sAsZu-0001jI-Lh; Sat, 25 May 2024 10:40:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sAsZr-0001ia-2e for bug-gnu-emacs@gnu.org; Sat, 25 May 2024 10:40:55 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sAsZq-0000gg-Qp for bug-gnu-emacs@gnu.org; Sat, 25 May 2024 10:40:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sAsZy-0001tn-9x for bug-gnu-emacs@gnu.org; Sat, 25 May 2024 10:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 May 2024 14:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71049 X-GNU-PR-Package: emacs Original-Received: via spool by 71049-submit@debbugs.gnu.org id=B71049.17166480507256 (code B ref 71049); Sat, 25 May 2024 14:41:02 +0000 Original-Received: (at 71049) by debbugs.gnu.org; 25 May 2024 14:40:50 +0000 Original-Received: from localhost ([127.0.0.1]:43815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAsZl-0001sx-Im for submit@debbugs.gnu.org; Sat, 25 May 2024 10:40:49 -0400 Original-Received: from wfhigh4-smtp.messagingengine.com ([64.147.123.155]:41771) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAsZk-0001sY-17 for 71049@debbugs.gnu.org; Sat, 25 May 2024 10:40:48 -0400 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfhigh.west.internal (Postfix) with ESMTP id 94F121800149; Sat, 25 May 2024 10:40:34 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sat, 25 May 2024 10:40:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1716648034; x=1716734434; bh=8CiUDA1cWcs8B6dhkv4nCdO657auHwe7FkiOuo6SyZ4=; b= Q/ERdv9hW1317Idb+/VrW6zL5tkOw+7sv6eOxL1xsgBEg2RByPHCSZfRTz8qweSq SUmSmQQW125RSQvlA+zZhUaTMcB+/oeykfB1P+7vudHFyP25jNRCdE7/Omc4Z8ua jvtYGijgmjagQrKqmmJjtLx71qD/w2omTCL3vFiFS4XKBiyannhWpIYyrQ2v93aQ Sa0JOn6yiwz6GjL5z3YKXLaT4Cd31wja2i91icmdXknLtba6EM4XzuiFV2ucx/Wi x6VrLn+g36e34A1emDeuNTxOA62CUVPumbpnmKSnu49Y4gjg+8BmXqsb5+NpDRNq 4EW3mrnMQYh59gXq79wcLg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1716648034; x= 1716734434; bh=8CiUDA1cWcs8B6dhkv4nCdO657auHwe7FkiOuo6SyZ4=; b=T pcrhFj38rlN1G2H/616nF1eIX+Q40tgb/eeEJ/nuEDTHr0ER9aU9tPVbv9vtBUka Kb6RP5VkADkGgDq4P5WpTYJWqRGtLukjkSfGUBEc8dj3I/TwoG2Rj9G204taEOD6 1YN5ujrQkUVup6efLooqXflvMH58a/Fvt1/b0DP0FoAnMuT5OhcCFf71ClODGaam FUOBIHl5lneeaY4tnJBsmOx/HQ4KHqv/lUAyFSiMt7UTPZc2j7irItcWHsE7RbPq 8Ny8jzMElYKVPnZAl8fesJNEuQMI/w11EiJzaxMZ5n/5hGDsk8yEC9Q7w5TuEaMp bij705kevyoVZA0DTu6Ag== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdejtddgjeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepvdeghfejieehueekueeiueevfefhfeeigeekgefftdeifefhfeefueejgffh udeknecuffhomhgrihhnpegrlhgsihhnuhhsrdhlohgtrghlnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdgu vghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 25 May 2024 10:40:33 -0400 (EDT) Content-Language: en-US In-Reply-To: <87msoevy9x.fsf@gmx.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:285881 Archived-At: On 25/05/2024 16:03, Michael Albinus wrote: > This is due to shell-command-sentinel. It uses (process-command process) > to determine the finished command. In the local case, this returns > somethiong like ("/usr/bin/sh" "-c" "ls"). In the remote case, it looks > different: > > --8<---------------cut here---------------start------------->8--- > ("ssh" "-q" "-o" "ControlMaster=auto" "-o" "ControlPath=/home/albinus/.cache/emacs/tramp.%C" "-o" "ControlPersist=no" "-e" "none" #("gandalf" 0 7 (tramp-default t)) "cd" "/home/albinus/" "&&" "(" "env" "INSIDE_EMACS\\=30.0.50\\,tramp\\:2.7.1-pre" "PATH\\=/home/albinus\\:/usr/share/Modules/bin\\:/usr/local/bin\\:/usr/bin\\:/usr/local/sbin\\:/usr/sbin\\:/var/lib/snapd/snap/bin\\:/home/albinus/.local/bin\\:/bin\\:/sbin" > "ENV\\=\\'\\'" "TMOUT\\=0" "LC_CTYPE\\=\\'\\'" "CDPATH\\=" "HISTORY\\=" > "MAIL\\=" "MAILCHECK\\=" "MAILPATH\\=" "PAGER\\=cat" "autocorrect\\=" > "correct\\=" "/bin/sh -c ls" ")") > --8<---------------cut here---------------end--------------->8--- > > So the sentinel must inspect the process property remote-command first. > > I've tried to fix both problems. Could you, pls, check the appended > patch? Seems to be working well. Thanks!