From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#23206: 25.0.92; dired-shell-stuff-it: wait until all parallel jobs finish Date: Mon, 4 Apr 2016 15:20:13 +0900 (JST) Message-ID: References: <837fgeraxz.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Trace: ger.gmane.org 1459750699 32502 80.91.229.3 (4 Apr 2016 06:18:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Apr 2016 06:18:19 +0000 (UTC) Cc: Tino Calancha To: 23206@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 04 08:18:10 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1amxpy-0002r0-Ao for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Apr 2016 08:18:10 +0200 Original-Received: from localhost ([::1]:56818 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amxpx-0008Uj-H0 for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Apr 2016 02:18:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amxpu-0008Ud-0U for bug-gnu-emacs@gnu.org; Mon, 04 Apr 2016 02:18:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amxpq-0002kV-Q5 for bug-gnu-emacs@gnu.org; Mon, 04 Apr 2016 02:18:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amxpq-0002kR-Mr for bug-gnu-emacs@gnu.org; Mon, 04 Apr 2016 02:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1amxpq-00061w-Bl for bug-gnu-emacs@gnu.org; Mon, 04 Apr 2016 02:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Apr 2016 06:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23206 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23206-submit@debbugs.gnu.org id=B23206.145975062623117 (code B ref 23206); Mon, 04 Apr 2016 06:18:02 +0000 Original-Received: (at 23206) by debbugs.gnu.org; 4 Apr 2016 06:17:06 +0000 Original-Received: from localhost ([127.0.0.1]:50536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amxov-00060n-OF for submit@debbugs.gnu.org; Mon, 04 Apr 2016 02:17:05 -0400 Original-Received: from calancha-ilc.kek.jp ([130.87.234.234]:55601) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amxot-00060E-NF for 23206@debbugs.gnu.org; Mon, 04 Apr 2016 02:17:04 -0400 Original-Received: by calancha-ilc.kek.jp (Postfix, from userid 500) id 5F6615970; Mon, 4 Apr 2016 15:20:13 +0900 (JST) Original-Received: from localhost (localhost [127.0.0.1]) by calancha-ilc.kek.jp (Postfix) with ESMTP id 45F6E54B3; Mon, 4 Apr 2016 15:20:13 +0900 (JST) X-X-Sender: calancha@calancha-ilc.kek.jp In-Reply-To: User-Agent: Alpine 2.20 (LRH 67 2015-01-07) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:116006 Archived-At: I must clarify the tittle of this thread (the word wait). Of course, the process is still asynchronous! :-) The command wait just avoid `shell-command-sentinel' be triggered too early. Once all jobs in the background finish, the shell returns with the return code of the last command in the list; then `shell-command-sentinel' do its stuff. The command 'wait' is specified by posix. I have verified that it is present in following shells: bash: 4.3, 3.2 dash: 0.5.8-2.2 posh: 0.12.6 bsd-csh: 1.65 (20110502-2.1) tcsh: 6.18, 6.14 ksh: 93u+ 2012-08-01, 20100202-1 zsh: 5.2, 4.2