From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23206: 25.0.92; dired-shell-stuff-it: wait until all parallel jobs finish Date: Sun, 03 Apr 2016 18:03:52 +0300 Message-ID: <837fgeraxz.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1459695923 15955 80.91.229.3 (3 Apr 2016 15:05:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Apr 2016 15:05:23 +0000 (UTC) Cc: 23206@debbugs.gnu.org To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 03 17:05:11 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 1amjaQ-0004Bu-9x for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Apr 2016 17:05:10 +0200 Original-Received: from localhost ([::1]:53823 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amjaP-0008LE-I5 for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Apr 2016 11:05:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amjaM-0008J1-H2 for bug-gnu-emacs@gnu.org; Sun, 03 Apr 2016 11:05:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amjaI-0003Bv-9r for bug-gnu-emacs@gnu.org; Sun, 03 Apr 2016 11:05:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amjaI-0003Bn-6T for bug-gnu-emacs@gnu.org; Sun, 03 Apr 2016 11:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1amjaI-00079R-0C for bug-gnu-emacs@gnu.org; Sun, 03 Apr 2016 11:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Apr 2016 15:05:01 +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.145969587027448 (code B ref 23206); Sun, 03 Apr 2016 15:05:01 +0000 Original-Received: (at 23206) by debbugs.gnu.org; 3 Apr 2016 15:04:30 +0000 Original-Received: from localhost ([127.0.0.1]:50095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amjZm-00078e-D0 for submit@debbugs.gnu.org; Sun, 03 Apr 2016 11:04:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amjZk-00078S-6u for 23206@debbugs.gnu.org; Sun, 03 Apr 2016 11:04:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amjZb-00038D-Vc for 23206@debbugs.gnu.org; Sun, 03 Apr 2016 11:04:23 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54810) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amjZb-000389-Rn; Sun, 03 Apr 2016 11:04:19 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3087 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1amjZb-0000Xz-6X; Sun, 03 Apr 2016 11:04:19 -0400 In-reply-to: (message from Tino Calancha on Sun, 3 Apr 2016 22:02:17 +0900 (JST)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:115933 Archived-At: > Date: Sun, 3 Apr 2016 22:02:17 +0900 (JST) > From: Tino Calancha > > When `dired-do-shell-command' runs COMMAND over FILES in > parallel, the `shell-command' process may finish before all the > files have being processed. > > emacs -Q ~ > > * / & du SPC -s RET > ; If the number of lines in # is less > ; than (1+ (length (dired-get-marked-files))) then NOT all files > ; has being processed. > > Attached patch fix this issue adding 'wait' at the end of COMMAND > when FILES are procesed in parallel. Thanks. Can you elaborate on why such a wait is needed?