From unknown Mon Jun 23 23:54:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18569: 24.3; Eshell: piping 'find' through 'xargs' reports random number of files Resent-From: Vlad Kozin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Sep 2014 19:00:13 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18569 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 18569@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.141175799029384 (code B ref -1); Fri, 26 Sep 2014 19:00:13 +0000 Received: (at submit) by debbugs.gnu.org; 26 Sep 2014 18:59:50 +0000 Received: from localhost ([127.0.0.1]:53285 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XXak6-0007do-KJ for submit@debbugs.gnu.org; Fri, 26 Sep 2014 14:59:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60048) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XXSEW-0000Y7-Pu for submit@debbugs.gnu.org; Fri, 26 Sep 2014 05:54:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXSDw-0005ZU-4c for submit@debbugs.gnu.org; Fri, 26 Sep 2014 05:54:36 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=AC_HTML_NONSENSE_TAGS, BAYES_50, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:50360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXSDv-0005RU-Qi for submit@debbugs.gnu.org; Fri, 26 Sep 2014 05:54:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXS2A-0004pB-S0 for bug-gnu-emacs@gnu.org; Fri, 26 Sep 2014 05:41:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXS25-00028S-55 for bug-gnu-emacs@gnu.org; Fri, 26 Sep 2014 05:41:50 -0400 Received: from forward-corp1e.mail.yandex.net ([77.88.60.199]:37741) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXS24-00026H-Dv for bug-gnu-emacs@gnu.org; Fri, 26 Sep 2014 05:41:45 -0400 Received: from smtpcorp4.mail.yandex.net (smtpcorp4.mail.yandex.net [95.108.252.2]) by forward-corp1e.mail.yandex.net (Yandex) with ESMTP id D972B64047F for ; Fri, 26 Sep 2014 13:41:32 +0400 (MSK) Received: from smtpcorp4.mail.yandex.net (localhost [127.0.0.1]) by smtpcorp4.mail.yandex.net (Yandex) with ESMTP id A56C82C0825 for ; Fri, 26 Sep 2014 13:41:32 +0400 (MSK) Received: from unknown (unknown [2a02:6b8:0:c33::1e]) by smtpcorp4.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id xtR5mdDler-fWSGVlgF; Fri, 26 Sep 2014 13:41:32 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: 4caafdb2-4844-4e71-8aeb-24f35578e3aa DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1411724492; bh=O8Y9ZmY/vo50xfUza69oaNbCKqxfTcT5qn20ay7QEQQ=; h=From:Content-Type:Subject:Message-Id:Date:To:Mime-Version: X-Mailer; b=ebjiwPsGbaueouf3p0DXiBtrrR5cuo1MM7UtstunFwxFVskDEDyMQSXfFIRWBCotW CeMxZ/CQETDXofwgOJyywBRVM1mjlReURBw+xxNwP4gY232md9/yM/QiMr/Py2OzGF qk9RCDNLRH1pjpFYMZSEbcdwKAjQ+GYo920oUCzU= Authentication-Results: smtpcorp4.mail.yandex.net; dkim=pass header.i=@yandex-team.ru From: Vlad Kozin Content-Type: multipart/alternative; boundary="Apple-Mail=_D1D9EA8B-7792-4FAC-84D0-0E2FEFC0B09F" Message-Id: <6C0F8D5F-4DAD-4C7B-9F47-5DCF0FF052C9@yandex-team.ru> Date: Fri, 26 Sep 2014 13:41:32 +0400 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -3.0 (---) X-Mailman-Approved-At: Fri, 26 Sep 2014 14:59:43 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.0 (---) --Apple-Mail=_D1D9EA8B-7792-4FAC-84D0-0E2FEFC0B09F Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Sample eshell session: --------------------- ~/Documents/battle-field [ ] # find -L islands-page/ -name '*.bemhtml' | xa= rgs -n1 -t | wc -l 92 ~/Documents/battle-field [ ] # find -L islands-page/ -name '*.bemhtml' | xa= rgs -n1 -t | wc -l 32 ~/Documents/battle-field [ ] # find -L islands-page/ -name '*.bemhtml' | wc= -l 54 ~/Documents/battle-field [ ] # find -L islands-page/ -name '*.bemhtml' | wc= -l 54 No other process is writing to the root folder or its subdirectiories. Correct number of lines is 54. Works fine in *shell*, *ansi-term*, spawned as async command or in any externall shell. Unrelated to this issue, there's another potential bug. Adding NUL as separator throws Emacs into infinite 'visual bell' - totally unresponsive - can only be nuked: -------------------------------- find -L islands-page/ -name '*.bemhtml' -print0 | xargs -0 -n1 echo In GNU Emacs 24.3.1 (x86_64-apple-darwin13.2.0, NS apple-appkit-1265.20) of 2014-06-08 on 5.255.234.126-red.dhcp.yndx.net Windowing system distributor `Apple', version 10.3.1265 Configured using: `configure '--prefix=3D/usr/local/Cellar/emacs/24.3' '--without-dbus' '--enable-locallisppath=3D/usr/local/share/emacs/site-lisp' '--infodir=3D/usr/local/Cellar/emacs/24.3/share/info/emacs' '--without-gnutls' '--with-ns' '--disable-ns-self-contained' 'CC=3Dclang'' Important settings: value of $LC_CTYPE: UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: EShell Minor modes in effect: magit-auto-revert-mode: t yas-global-mode: t yas-minor-mode: t global-flycheck-mode: t which-function-mode: t global-company-mode: t company-mode: t helm-mode: t helm-descbinds-mode: t helm-match-plugin-mode: t helm-occur-match-plugin-mode: t erc-truncate-mode: t erc-track-mode: t erc-spelling-mode: t global-diff-hl-mode: t diff-auto-refine-mode: t winner-mode: t global-undo-tree-mode: t undo-tree-mode: t global-anzu-mode: t anzu-mode: t projectile-global-mode: t projectile-mode: t shell-dirtrack-mode: t volatile-highlights-mode: t global-hl-line-mode: t recentf-mode: t savehist-mode: t show-smartparens-global-mode: t global-auto-revert-mode: t delete-selection-mode: t prelude-global-mode: t prelude-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-n C-p C-n w w C-p C-n w w C-t r e a d C-n C-n C-p w w M-h M-` C-g M-; C-t C-s w w C-- C-- w w C-- C-- C-- C-p C-n w w w w =D0=B1 =D0=B1 C-=D1=85 w w w w C-/ C-t C-s w w C-p C-n w w C-p C-n C-t C-s C-p C-p C-p C-p C-p C-p C-n C-n C-n C-n C-n C-n C-n C-d C-d C-d C-t C-s C-c C-b b b C-n C-n C-n C-n C-n C-n C-p C-n w w C-n C-d C-d C-t C-s C-d C-t C-s C-c C-b b b C-n C-n C-n C-n C-n C-n C-n C-n C-p C-n w w C-n C-d C-d C-t C-s C-c C-b w w b b C-c s w w b b C-d M-h M-` C-g M-; C-t C-s w w b b b j s M-< C-v C-v C-v C-v C-v C-v M-< b b C-n C-n C-p C-n C-p C-n C-p C-n C-n C-n C-p C-n C-n C-t m p w d c d SPC o d b a d o c C-c C-l C-g C-t C-f d o c u b a t C-z p a t h e s h e l M-e C-c C-l f i n d C-n C-p C-n C-n C-n C-p C-n M-p M-p C-b C-b C-b C-b C-b C-b C-b C-e M-p C-t r e p a r o r t SPC e m a Recent messages: Mark set Saving file /Users/kozin/Documents/Speak/pYatnitsa/Expr.js... Wrote /Users/kozin/Documents/Speak/pYatnitsa/Expr.js Mark set Making completion list... Quit Saving file /Users/kozin/Documents/Speak/pYatnitsa/Expr.js... Wrote /Users/kozin/Documents/Speak/pYatnitsa/Expr.js Mark set [2 times] History item: 128 [3 times] Load-path shadows: /Users/kozin/.emacs.d/personal/custom hides /usr/local/Cellar/emacs/24.3/sh= are/emacs/24.3/lisp/custom Features: (shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader sendmail pcmpl-unix face-remap hippie-exp mail-utils network-stream starttls magit-key-mode magit view epa derived epg epg-config git-rebase-mode git-commit-mode log-edit pcvs-util tmm misearch multi-isearch vc-bzr vc-sccs vc-svn vc-cvs vc-rcs diff-hl-dired tramp-cache image-file helm-command easy-kill js add-log jslime-mode nodejs-repl tramp-sh ido helm-misc em-unix em-term term ehelp electric em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl em-basic em-banner em-alias rainbow-mode color rainbow-delimiters elisp-slime-nav guru-mode company-ghc ghc dabbrev ghc-indent ghc-ins-mod ghc-command ghc-check ghc-doc ghc-info ghc-comp ghc-rewrite ghc-process ghc-func company-tern dash-functional tern url-http tls url-auth mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-gw setup-yasnippet setup-js2-mode json js2-imenu-extras js2-refactor js2r-paredit js2r-conveniences js2r-conditionals the-org-mode-expansions org ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob org-compat org-macs ob-eval org-loaddefs cal-menu calendar cal-loaddefs js2r-wrapping js2r-functions yasnippet js2r-vars multiple-cursors-core rect js2r-iife js2r-formatting js2r-helpers js2-mode-expansions js-mode-expansions js2-mode cc-langs cc-mode-expansions cc-mode cc-fonts cc-guess cc-menus cc-styles cc-align cc-cmds cc-engine cc-vars cc-defs vc-git server sanityinc-tomorrow-night-theme prelude-xml nxml-mode-expansions html-mode-expansions sgml-mode rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok prelude-web web-mode-expansions smartparens-html web-mode disp-table prelude-shell sh-script smie executable prelude-scheme geiser prelude-org prelude-js prelude-haskell prelude-emacs-lisp prelude-css prelude-common-lisp prelude-lisp prelude-coffee prelude-c prelude-programming flycheck which-func imenu prelude-key-chord key-chord prelude-company company-files company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-capf company-cmake company-ropemacs company-xcode company-clang company-semantic company-eclim company-template company-css company-nxml company-bbdb company-elisp help-mode company prelude-helm-everywhere helm-mode helm-descbinds helm-eshell helm-elisp helm-eval prelude-helm helm-projectile helm-files rx image-dired dired-aux ffap helm-buffers helm-elscreen helm-tags helm-bookmark helm-adaptive helm-info helm-net browse-url xml url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse url-vars mailcap helm-plugin helm-locate helm-help helm-match-plugin helm-grep helm-regexp helm-external helm-utils helm-config helm-aliases helm helm-source prelude-erc erc-truncate erc-track erc-match erc-autoaway erc-spelling erc-notify erc-networks erc-log erc-goodies erc erc-backend erc-compat prelude-osx exec-path-from-shell prelude-global-keybindings prelude-editor operate-on-number calc-bin calc-ext calc calc-loaddefs calc-macs diff-hl smartrep vc-dir ewoc vc vc-dispatcher diff-mode winner undo-tree diff esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg eldoc esh-groups eshell esh-module esh-mode esh-util re-builder whitespace browse-kill-ring midnight ediff-merg ediff-diff ediff-wind ediff-help ediff-util ediff-mult ediff-init ediff dired-x dired anzu projectile ibuf-ext ibuffer pkg-info find-func lisp-mnt grep compile s ucs-normalize bookmark pp expand-region text-mode-expansions er-basic-expansions expand-region-core expand-region-custom flyspell ispell tramp tramp-compat auth-source gnus-util mm-util mail-prsvr password-cache tramp-loaddefs shell pcomplete comint ansi-color format-spec etags ring volatile-highlights hl-line windmove recentf tree-widget wid-edit savehist saveplace uniquify diminish smartparens-config smartparens warnings autorevert delsel prelude-mode easy-mmode prelude-core epl pcase ov dash thingatpt prelude-custom prelude-ui zenburn-theme prelude-packages ace-jump-buffer-autoloads ace-window-autoloads ace-window ace-jump-mode advice help-fns advice-preload ace-jump-mode-autoloads ack-and-a-half-autoloads anzu-autoloads browse-kill-ring-autoloads coffee-mode-autoloads company-ghc-autoloads company-tern-autoloads company-autoloads dash-functional-autoloads diff-hl-autoloads diminish-autoloads discover-autoloads discover-my-major-autoloads easy-kill-autoloads elisp-slime-nav-autoloads exec-path-from-shell-autoloads expand-region-autoloads flycheck-autoloads fsharp-mode-autoloads auto-complete-autoloads fuel-autoloads geiser-autoloads ghc-autoloads gist-autoloads gh-autoloads eieio byte-opt bytecomp byte-compile cconv git-timemachine-autoloads gitconfig-mode-autoloads gitignore-mode-autoloads god-mode-autoloads grizzl-autoloads guru-mode-autoloads haskell-mode-autoloads edmacro kmacro helm-descbinds-autoloads helm-projectile-autoloads helm-autoloads ibuffer-vc-autoloads js-doc-autoloads key-chord-autoloads logito-autoloads magit-autoloads info easymenu git-rebase-mode-autoloads git-commit-mode-autoloads makey-autoloads markdown-mode+-autoloads markdown-mode-autoloads move-text-autoloads multiple-cursors-autoloads nodejs-repl-autoloads operate-on-number-autoloads ov-autoloads pcache-autoloads pcomplete-extension-autoloads popup-autoloads popwin-autoloads pos-tip-autoloads projectile-autoloads pkg-info-autoloads epl-autoloads racket-mode-autoloads rainbow-delimiters-autoloads rainbow-mode-autoloads s-autoloads simple-httpd-autoloads smartparens-autoloads dash-autoloads smartrep-autoloads tern-autoloads tuareg-autoloads caml-autoloads undo-tree-autoloads visual-regexp-steroids-autoloads visual-regexp-autoloads finder-inf vkill-autoloads volatile-highlights-autoloads web-mode-autoloads yasnippet-autoloads zenburn-theme-autoloads package cl-macs gv cl cl-lib time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) --Apple-Mail=_D1D9EA8B-7792-4FAC-84D0-0E2FEFC0B09F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Sample eshell = session:
---------------------
~/Documents/battle-field [ ] # find = -L islands-page/ -name '*.bemhtml' | xa=3D
rgs -n1 -t | wc = -l
      = 92
~/Documents/battle-field [ ] # find -L islands-page/ -name = '*.bemhtml' | xa=3D
rgs -n1 -t | wc -l
      = 32
~/Documents/battle-field [ ] # find -L islands-page/ -name = '*.bemhtml' | wc=3D
-l
      = 54
~/Documents/battle-field [ ] # find -L islands-page/ -name = '*.bemhtml' | wc=3D
-l
      54

No other process = is writing to the root folder or its
subdirectiories. Correct number = of lines is 54. Works fine in *shell*,
*ansi-term*, spawned as async = command or in any externall shell.

Unrelated to this issue, = there's another potential bug. Adding NUL as
separator throws Emacs = into infinite 'visual bell' - totally
unresponsive - can only be = nuked:
--------------------------------
find -L islands-page/ = -name '*.bemhtml' -print0 | xargs  -0 -n1 = echo



In GNU Emacs 24.3.1 (x86_64-apple-darwin13.2.0, NS = apple-appkit-1265.20)
of 2014-06-08 on 5.255.234.126-red.dhcp.yndx.net
Windowing = system distributor `Apple', version 10.3.1265
Configured using:
= `configure '--prefix=3D3D/usr/local/Cellar/emacs/24.3' = '--without-dbus'
= '--enable-locallisppath=3D3D/usr/local/share/emacs/site-lisp'
= '--infodir=3D3D/usr/local/Cellar/emacs/24.3/share/info/emacs'
= '--without-gnutls' '--with-ns' '--disable-ns-self-contained'
= 'CC=3D3Dclang''

Important settings:
  value of $LC_CTYPE: = UTF-8
  = locale-coding-system: utf-8-unix
  default = enable-multibyte-characters: t

Major mode: EShell

Minor = modes in effect:
  = magit-auto-revert-mode: t
  yas-global-mode: = t
  yas-minor-mode: = t
  = global-flycheck-mode: t
  which-function-mode: = t
  = global-company-mode: t
  company-mode: t
  helm-mode: t
  helm-descbinds-mode: = t
  = helm-match-plugin-mode: t
  = helm-occur-match-plugin-mode: t
  erc-truncate-mode: = t
  erc-track-mode: = t
  = erc-spelling-mode: t
  global-diff-hl-mode: = t
  = diff-auto-refine-mode: t
  winner-mode: t
  global-undo-tree-mode: = t
  undo-tree-mode: = t
  = global-anzu-mode: t
 = anzu-mode: t
  = projectile-global-mode: t
  projectile-mode: = t
  = shell-dirtrack-mode: t
  volatile-highlights-mode: = t
  = global-hl-line-mode: t
  recentf-mode: t
  savehist-mode: t
  = show-smartparens-global-mode: t
  global-auto-revert-mode: = t
  = delete-selection-mode: t
  prelude-global-mode: = t
  prelude-mode: = t
  tooltip-mode: = t
  = mouse-wheel-mode: t
 = menu-bar-mode: t
  = file-name-shadow-mode: t
  global-font-lock-mode: = t
  font-lock-mode: = t
  = auto-composition-mode: t
  auto-encryption-mode: = t
  = auto-compression-mode: t
  size-indication-mode: = t
  = column-number-mode: t
  line-number-mode: = t
  = transient-mark-mode: t

Recent input:
C-n C-p C-n w w C-p C-n w = w C-t <return> r e a d <return>
C-n C-n C-p w w M-h M-` = C-g M-; C-t C-s w w C-- C--
w w C-- C-- C-- C-p C-n w w w w =3DD0=3DB1 = =3DD0=3DB1 C-=3DD1=3D85 w w w w <C-S-backspa=3D
ce>
C-/ = <backspace> <backspace> C-t C-s w w C-p C-n w w
C-p C-n = C-t C-s C-p C-p C-p C-p C-p C-p C-n C-n C-n
C-n C-n C-n C-n C-d C-d = C-d C-t C-s C-c C-b b b <return>
C-n C-n C-n C-n C-n C-n C-p = C-n w w C-n C-d C-d C-t
C-s C-d C-t C-s C-c C-b b b <return> = C-n C-n C-n C-n
C-n C-n C-n C-n C-p C-n w w C-n C-d C-d C-t C-s = C-c
C-b w w b b <return> C-c s w w b b <return> C-d = M-h
M-` C-g M-; C-t C-s w w b b b j s <return> M-< = C-v
C-v C-v C-v C-v C-v M-< b b <return> C-n C-n C-p = C-n
C-p C-n C-p C-n C-n C-n C-p C-n C-n C-t m p w d = <return>
c d SPC o d <backspace> <backspace> b a = <tab> <backspace>
<backspace> d o c = <backspace> <backspace> = <backspace>
<backspace> <backspace> = <backspace> C-c C-l C-g C-t
C-f <tab> d o c u <tab> = b a t <tab> C-z p a t h <backspace>
<backspace> = <backspace> <backspace> e s h e l M-e C-c
C-l f i n d C-n = C-p C-n C-n C-n <return> <return> C-p
C-n M-p = <return> M-p C-b C-b C-b C-b C-b C-b C-b = <backspace>
<backspace> <backspace> = <backspace> <backspace> = <backspace>
<backspace> <backspace> = <backspace> <backspace> = <backspace>
<backspace> <backspace> = <backspace> <backspace> C-e
<return> M-p = <return> <help-echo> C-t <return> r e
p a r = <backspace> <backspace> o r t SPC e m a = <ret
urn>

Recent messages:
Mark set
Saving file = /Users/kozin/Documents/Speak/pYatnitsa/Expr.js...
Wrote = /Users/kozin/Documents/Speak/pYatnitsa/Expr.js
Mark set
Making = completion list...
Quit
Saving file = /Users/kozin/Documents/Speak/pYatnitsa/Expr.js...
Wrote = /Users/kozin/Documents/Speak/pYatnitsa/Expr.js
Mark set [2 = times]
History item: 128 [3 times]

Load-path = shadows:
/Users/kozin/.emacs.d/personal/custom hides = /usr/local/Cellar/emacs/24.3/sh=3D
are/emacs/24.3/lisp/custom

Fe= atures:
(shadow sort mail-extr emacsbug message rfc822 mml mml-sec = mm-decode
mm-bodies mm-encode mailabbrev gmm-utils mailheader = sendmail pcmpl-unix
face-remap hippie-exp mail-utils network-stream = starttls magit-key-mode
magit view epa derived epg epg-config = git-rebase-mode git-commit-mode
log-edit pcvs-util tmm misearch = multi-isearch vc-bzr vc-sccs vc-svn
vc-cvs vc-rcs diff-hl-dired = tramp-cache image-file helm-command
easy-kill js add-log jslime-mode = nodejs-repl tramp-sh ido helm-misc
em-unix em-term term ehelp = electric em-script em-prompt em-ls em-hist
em-pred em-glob em-dirs = em-cmpl em-basic em-banner em-alias rainbow-mode
color = rainbow-delimiters elisp-slime-nav guru-mode company-ghc ghc
dabbrev = ghc-indent ghc-ins-mod ghc-command ghc-check ghc-doc = ghc-info
ghc-comp ghc-rewrite ghc-process ghc-func company-tern = dash-functional
tern url-http tls url-auth mail-parse rfc2231 rfc2047 = rfc2045 ietf-drums
url-gw setup-yasnippet setup-js2-mode json = js2-imenu-extras js2-refactor
js2r-paredit js2r-conveniences = js2r-conditionals the-org-mode-expansions
org ob-tangle ob-ref ob-lob = ob-table org-footnote org-src ob-comint
ob-keys org-pcomplete = org-list org-faces org-entities noutline outline
org-version = ob-emacs-lisp ob org-compat org-macs ob-eval org-loaddefs
cal-menu = calendar cal-loaddefs js2r-wrapping js2r-functions = yasnippet
js2r-vars multiple-cursors-core rect js2r-iife = js2r-formatting
js2r-helpers js2-mode-expansions js-mode-expansions = js2-mode cc-langs
cc-mode-expansions cc-mode cc-fonts cc-guess = cc-menus cc-styles cc-align
cc-cmds cc-engine cc-vars cc-defs vc-git = server
sanityinc-tomorrow-night-theme prelude-xml = nxml-mode-expansions
html-mode-expansions sgml-mode rng-nxml = rng-valid rng-loc rng-uri
rng-parse nxml-parse rng-match rng-dt = rng-util rng-pttrn nxml-ns
nxml-mode nxml-outln nxml-rap nxml-util = nxml-glyph nxml-enc xmltok
prelude-web web-mode-expansions = smartparens-html web-mode disp-table
prelude-shell sh-script smie = executable prelude-scheme geiser
prelude-org prelude-js = prelude-haskell prelude-emacs-lisp prelude-css
prelude-common-lisp = prelude-lisp prelude-coffee prelude-c
prelude-programming flycheck = which-func imenu prelude-key-chord
key-chord prelude-company = company-files company-oddmuse company-keywords
company-etags = company-gtags company-dabbrev-code company-dabbrev
company-capf = company-cmake company-ropemacs company-xcode = company-clang
company-semantic company-eclim company-template = company-css company-nxml
company-bbdb company-elisp help-mode company = prelude-helm-everywhere
helm-mode helm-descbinds helm-eshell = helm-elisp helm-eval prelude-helm
helm-projectile helm-files rx = image-dired dired-aux ffap helm-buffers
helm-elscreen helm-tags = helm-bookmark helm-adaptive helm-info helm-net
browse-url xml url = url-proxy url-privacy url-expand url-methods
url-history url-cookie = url-domsuf url-util url-parse url-vars mailcap
helm-plugin = helm-locate helm-help helm-match-plugin helm-grep
helm-regexp = helm-external helm-utils helm-config helm-aliases helm
helm-source = prelude-erc erc-truncate erc-track erc-match = erc-autoaway
erc-spelling erc-notify erc-networks erc-log erc-goodies = erc erc-backend
erc-compat prelude-osx exec-path-from-shell = prelude-global-keybindings
prelude-editor operate-on-number calc-bin = calc-ext calc calc-loaddefs
calc-macs diff-hl smartrep vc-dir ewoc vc = vc-dispatcher diff-mode winner
undo-tree diff esh-var esh-io esh-cmd = esh-opt esh-ext esh-proc esh-arg
eldoc esh-groups eshell esh-module = esh-mode esh-util re-builder
whitespace browse-kill-ring midnight = ediff-merg ediff-diff ediff-wind
ediff-help ediff-util ediff-mult = ediff-init ediff dired-x dired anzu
projectile ibuf-ext ibuffer = pkg-info find-func lisp-mnt grep compile s
ucs-normalize bookmark pp = expand-region text-mode-expansions
er-basic-expansions = expand-region-core expand-region-custom flyspell
ispell tramp = tramp-compat auth-source gnus-util mm-util mail-prsvr
password-cache = tramp-loaddefs shell pcomplete comint ansi-color
format-spec etags = ring volatile-highlights hl-line windmove recentf
tree-widget = wid-edit savehist saveplace uniquify diminish
smartparens-config = smartparens warnings autorevert delsel prelude-mode
easy-mmode = prelude-core epl pcase ov dash thingatpt prelude-custom
prelude-ui = zenburn-theme prelude-packages = ace-jump-buffer-autoloads
ace-window-autoloads ace-window = ace-jump-mode advice help-fns
advice-preload ace-jump-mode-autoloads = ack-and-a-half-autoloads
anzu-autoloads browse-kill-ring-autoloads = coffee-mode-autoloads
company-ghc-autoloads company-tern-autoloads = company-autoloads
dash-functional-autoloads diff-hl-autoloads = diminish-autoloads
discover-autoloads discover-my-major-autoloads = easy-kill-autoloads
elisp-slime-nav-autoloads = exec-path-from-shell-autoloads
expand-region-autoloads = flycheck-autoloads fsharp-mode-autoloads
auto-complete-autoloads = fuel-autoloads geiser-autoloads ghc-autoloads
gist-autoloads = gh-autoloads eieio byte-opt bytecomp byte-compile = cconv
git-timemachine-autoloads = gitconfig-mode-autoloads
gitignore-mode-autoloads god-mode-autoloads = grizzl-autoloads
guru-mode-autoloads haskell-mode-autoloads edmacro = kmacro
helm-descbinds-autoloads helm-projectile-autoloads = helm-autoloads
ibuffer-vc-autoloads js-doc-autoloads = key-chord-autoloads
logito-autoloads magit-autoloads info easymenu = git-rebase-mode-autoloads
git-commit-mode-autoloads makey-autoloads = markdown-mode+-autoloads
markdown-mode-autoloads move-text-autoloads = multiple-cursors-autoloads
nodejs-repl-autoloads = operate-on-number-autoloads ov-autoloads
pcache-autoloads = pcomplete-extension-autoloads popup-autoloads
popwin-autoloads = pos-tip-autoloads projectile-autoloads
pkg-info-autoloads = epl-autoloads racket-mode-autoloads
rainbow-delimiters-autoloads = rainbow-mode-autoloads s-autoloads
simple-httpd-autoloads = smartparens-autoloads dash-autoloads
smartrep-autoloads = tern-autoloads tuareg-autoloads caml-autoloads
undo-tree-autoloads = visual-regexp-steroids-autoloads
visual-regexp-autoloads finder-inf = vkill-autoloads
volatile-highlights-autoloads web-mode-autoloads = yasnippet-autoloads
zenburn-theme-autoloads package cl-macs gv cl = cl-lib time-date tooltip
ediff-hook vc-hooks lisp-float-type mwheel = ns-win tool-bar dnd fontset
image regexp-opt fringe tabulated-list = newcomment lisp-mode register
page menu-bar rfn-eshadow timer select = scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame = cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet = lao korean japanese hebrew
greek romanian slovak czech european = ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook = help simple abbrev minibuffer loaddefs
button faces cus-face macroexp = files text-properties overlay sha1 md5
base64 format env code-pages = mule custom widget hashtable-print-readable
backquote = make-network-process ns multi-tty emacs)




= --Apple-Mail=_D1D9EA8B-7792-4FAC-84D0-0E2FEFC0B09F-- From unknown Mon Jun 23 23:54:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18569: 24.3; Eshell: piping 'find' through 'xargs' reports random number of files References: <6C0F8D5F-4DAD-4C7B-9F47-5DCF0FF052C9@yandex-team.ru> In-Reply-To: <6C0F8D5F-4DAD-4C7B-9F47-5DCF0FF052C9@yandex-team.ru> Resent-From: samer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Jan 2015 04:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18569 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Vlad Kozin Cc: 18569@debbugs.gnu.org Received: via spool by 18569-submit@debbugs.gnu.org id=B18569.14212959147301 (code B ref 18569); Thu, 15 Jan 2015 04:26:02 +0000 Received: (at 18569) by debbugs.gnu.org; 15 Jan 2015 04:25:14 +0000 Received: from localhost ([127.0.0.1]:57222 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YBbzd-0001th-VJ for submit@debbugs.gnu.org; Wed, 14 Jan 2015 23:25:14 -0500 Received: from samertm.com ([162.243.37.26]:57399 helo=mail.samertm.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YBbzc-0001tY-4C for 18569@debbugs.gnu.org; Wed, 14 Jan 2015 23:25:12 -0500 Received: by mail.samertm.com (Postfix, from userid 1010) id 81DD282062; Thu, 15 Jan 2015 04:24:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on o-server X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=ALL_TRUSTED autolearn=ham version=3.3.2 Received: from samertm.com (localhost [127.0.0.1]) by mail.samertm.com (Postfix) with ESMTP id 3228181A1E; Thu, 15 Jan 2015 04:24:37 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 14 Jan 2015 20:24:37 -0800 From: samer Message-ID: X-Sender: samer@samertm.com User-Agent: Roundcube Webmail/0.9.5 X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) I can't reproduce this issue. Can you verify this bug against the latest commit? Thanks, Samer From unknown Mon Jun 23 23:54:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18569: 24.3; Eshell: piping 'find' through 'xargs' reports random number of files Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Jan 2017 00:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18569 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: samer Cc: 18569@debbugs.gnu.org, Vlad Kozin Received: via spool by 18569-submit@debbugs.gnu.org id=B18569.148573455125325 (code B ref 18569); Mon, 30 Jan 2017 00:03:02 +0000 Received: (at 18569) by debbugs.gnu.org; 30 Jan 2017 00:02:31 +0000 Received: from localhost ([127.0.0.1]:50529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXzQV-0006aP-GJ for submit@debbugs.gnu.org; Sun, 29 Jan 2017 19:02:31 -0500 Received: from mail-it0-f49.google.com ([209.85.214.49]:36545) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cXzQU-0006aC-5Z for 18569@debbugs.gnu.org; Sun, 29 Jan 2017 19:02:30 -0500 Received: by mail-it0-f49.google.com with SMTP id c7so183906710itd.1 for <18569@debbugs.gnu.org>; Sun, 29 Jan 2017 16:02:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=8Pen80Wxt84W5tNFrtjGs1aZAG8llnwmFEpBGpE9NBA=; b=TinDU2VPNSLGSB4E0oIx6dKtFerFScHfg+rq3LljHDTPhK2iKuzQELnrheFgag1M/L a5DOrIqiJt2VaQuu1PG9O0mEFseYLdKSZXFekWQgzxINNqNyoTHZuev7JQdNmEWBOiRi IuXQYQ4vqs1iG2sD70LswhCapGOyXoPvsjVyQhuAlolZL9VSoc2yX/3+CTswVJjaKrDp 6pK6sLpo6pQdNg//vhXRI/d2xY8boHspHnZJR0CMGap27UirHNVLYpvVzyMrUBrb+hkW aEAorkXiri+xwhKBCRQc4sxJRWTfVX+5HJpM6aAmL1kxDp7utiHDu9q2VUB/T9IbcqQS 9zlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=8Pen80Wxt84W5tNFrtjGs1aZAG8llnwmFEpBGpE9NBA=; b=cvEBYL+52Jxgp6jeMM8eFgx4ydme+knFltlmyd336TURyBE/LaMgvIe23EK99jbxDf KuE4EzyyiaeraGJyuWBTVya+XheD4fJ1f7bzwWerIAGkfiriyVschNSitwfUfD1vjpyx 3FDLSy+xORnxOzPv2KGIRfSDi7hE/1DWbs7Wd5nolkuh/AM/uFm6nVEJiDOXaDC92fTN Qhcz/wXPIdPcVRZjEQ9zYdBMy9GO/XdRYw++41J2R21O3MAbXAyDENVlsIe/ufrgopvA ImVtIRY95q9s3c63uXndTouXchEG7alLoOhBlzCFwvjqL5QJxhRbOO9wURZ1cEbaNxPB v1pA== X-Gm-Message-State: AIkVDXJKHCmL2WOE2I5N7KtwSBQ3aUo7qzHDpJqAr25liXIsbtHDXnv6WbYqQAvf47uP4g== X-Received: by 10.36.108.205 with SMTP id w196mr12994523itb.96.1485734544611; Sun, 29 Jan 2017 16:02:24 -0800 (PST) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id j201sm5502333ita.20.2017.01.29.16.02.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 29 Jan 2017 16:02:24 -0800 (PST) From: npostavs@users.sourceforge.net References: <6C0F8D5F-4DAD-4C7B-9F47-5DCF0FF052C9@yandex-team.ru> Date: Sun, 29 Jan 2017 19:03:32 -0500 In-Reply-To: (samer@samertm.com's message of "Wed, 14 Jan 2015 20:24:37 -0800") Message-ID: <87wpddquqz.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) merge 18569 25549 quit samer writes: > I can't reproduce this issue. Can you verify this bug against the latest > commit? > I can't reproduce this either, seems to be the same as #25549. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 31 22:55:54 2017 Received: (at control) by debbugs.gnu.org; 1 Feb 2017 03:55:54 +0000 Received: from localhost ([127.0.0.1]:52755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYm1S-0001Xt-LB for submit@debbugs.gnu.org; Tue, 31 Jan 2017 22:55:54 -0500 Received: from mail-it0-f42.google.com ([209.85.214.42]:36865) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYm1R-0001Xi-U3 for control@debbugs.gnu.org; Tue, 31 Jan 2017 22:55:54 -0500 Received: by mail-it0-f42.google.com with SMTP id r185so9444458ita.0 for ; Tue, 31 Jan 2017 19:55:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version; bh=P4K9cu0zSqdymdzfwGOJJRdiiwUJ/IN91pGQCpBDyjA=; b=k7aeRs1fl/irK/uC3mBc9t6GyUCmcRKZY9UnCMYD41b4+S1+yGfGuET2HXJjuqmSA7 jE6reJ0TBQe5WnY5AHZ8tOhc+d2Biw1IbehseJNPZOCqITGtAPAPqCptQdTIc7miojs2 jpyezjth3XiRcnjTHqJhux4mfO4dZoL4BECiiElxKKBGbQpzUTnhZ02CxFwydzb2twne y4+MyDVMu3vbE4hKEQxbYTBkUJkzeJEGNKeYnkgsCkjJ+Schn9DckN8upxDUOTmbawDV SgenknCeXY8X1x4tkrl7DC0fkDcEq/3gmOt3M6BxtZkaZDRCEgOKSKI2jwGPFW8PUgoN dP4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=P4K9cu0zSqdymdzfwGOJJRdiiwUJ/IN91pGQCpBDyjA=; b=ICo0etZsLHStak0rl3dA7QiYRpYSnnE0XtTeHJij3N+mhhYgUjm2FYakfFIKhe7fQQ bFtzZLMYmXlbldYL+tJzLHD1xWuunq5BADb9x9SupY4nwoaaj7vDu8HsB2HbzuuH9T5s YjYL+dqwyGuaBP4psXN8LpTHrZGW2thr/td3ZNytLRL+GCzfeuRA3rRncJjdMQEDGWHc WkKQ34XWD1Xt8E+UCgrpEYZ3pFfhCRp/pce+gc91mDc69DPnQM/2MLSy0/NmhM87BBAO y/N+HSVw5XEAo2ePfmVLjpURsV45lTkTux2feZTBKUwPb9Z58LAY/BOvc42rQFgDURck cvSw== X-Gm-Message-State: AIkVDXIlT1bjd514UB+iOr6PVTMKkmXqn9Ye0Nj6wfOv/XrZwXWETF2/V80s+lOYAzj1XA== X-Received: by 10.36.58.71 with SMTP id m68mr926117itm.36.1485921348187; Tue, 31 Jan 2017 19:55:48 -0800 (PST) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id y126sm9413361itf.14.2017.01.31.19.55.47 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 31 Jan 2017 19:55:47 -0800 (PST) From: npostavs@users.sourceforge.net To: control@debbugs.gnu.org Subject: control message for bug #18569 Date: Tue, 31 Jan 2017 22:56:56 -0500 Message-ID: <87y3xqpnqv.fsf@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) merge 15414 18569 25549 quit From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 02 22:25:57 2017 Received: (at control) by debbugs.gnu.org; 3 Feb 2017 03:25:57 +0000 Received: from localhost ([127.0.0.1]:54365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZUVY-0008Qw-SK for submit@debbugs.gnu.org; Thu, 02 Feb 2017 22:25:57 -0500 Received: from mail-it0-f65.google.com ([209.85.214.65]:34745) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZUVW-0008Qf-U2; Thu, 02 Feb 2017 22:25:55 -0500 Received: by mail-it0-f65.google.com with SMTP id o185so547639itb.1; Thu, 02 Feb 2017 19:25:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=1vSf3Til1cRhNnQovrcgRceOrFtyI97L2HmzfkuR8j0=; b=YIfnDZVJzyv9jeOLco7dhOR6Y9NHBd6806M6jGFnT9SnNTs4r5wIl6g9A/bZySXzP+ 4xr/ZFWr9sQGh8lK30gCV9QOPUexTlw4JjyCy8yrXOGH7AOT7S+X+SXWgJv+acqpkG7z PWy18i3xn+KyYbCXVCBSfydcEDV1VNibJs2+Al6sPD6qGdQWSqdU8xehvn3Kf/CbW+mW TfXhEXb6QBN00naS7fn+J0pl6iS8Wezu5kPz4M4Z25ETYSEKwawwm1A+Up2S2oMmMHh0 BRxUcDgUZRcrwFShZLDbzmUnEALlpfM6EsQ5w+4BdvSQd81Yuib0pVoux80fSbHq9StN RsBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=1vSf3Til1cRhNnQovrcgRceOrFtyI97L2HmzfkuR8j0=; b=AulBaG/WNd5k9AJUiPuRxUCDY+j/M4TWpZpcnMZpFBXhODkeohriUM212oKUqmI5mq 1T+bacviqIUX8Sw6ozWzwrIV5O+nIsGxcBRTGPain2dnF5TFgjiEfwwKDIF9/kjpBJ+8 CKhg709nDA24yV9SBbPJ80PBnKj0te1NZj5bp+a+61g7wacJ4zpxazONFFYRn8+8aAgA hVhADjRG/nJXhTI1jrPl8Osxn507d9b8/k3356QCRTbV62VQkEd7lpcVOUujgVOh6odM JRKJpAwpMK1Uo6nArNRgsBu+9Jt8wgaWbzweI20GMuH5UFtMRZAzPKpZDEO5B+hNITJh 9isQ== X-Gm-Message-State: AIkVDXKelx3leIql3G7SE5L4uAugdMiZpOGWKGUCsEQ9cy4yzyuk8YOF/VxhuPPGxkJdbw== X-Received: by 10.36.112.137 with SMTP id f131mr628534itc.26.1486092349273; Thu, 02 Feb 2017 19:25:49 -0800 (PST) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id e24sm331513itd.6.2017.02.02.19.25.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Feb 2017 19:25:48 -0800 (PST) From: npostavs@users.sourceforge.net To: Tijs Mallaerts Subject: Re: bug#25549: 25.1; eshell grep gives inconsistent output References: <87tw8lzdaj.fsf@it-alanm.williamson-tn.org> <87mve8q7vl.fsf_-_@users.sourceforge.net> Date: Thu, 02 Feb 2017 22:26:57 -0500 In-Reply-To: <87mve8q7vl.fsf_-_@users.sourceforge.net> (npostavs@users.sourceforge.net's message of "Mon, 30 Jan 2017 21:29:50 -0500") Message-ID: <87mve4osxq.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: control Cc: me@alandmoore.com, 25549@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) --=-=-= Content-Type: text/plain tags 25549 patch quit npostavs@users.sourceforge.net writes: > > Tijs Mallaerts writes: > >> On my machine following steps seem to be a reproducible test case: >> >> - create a file "test-file.txt" with 20.000 identical lines with content "This is a line." >> - open eshell and insert the command: cat test-file.txt | grep line | wc >> >> This seems to return a different result every time it's run. > > Thanks, I can reproduce with this. The problem can be more easily reproduced (i.e., more often, and only 3000 lines) by cat test-file.txt | sleepy-cat | wc where sleepy-cat is #!/bin/sh while read line ; do echo "$line" sleep 0.000001 done The problem happens when one of the commands in the pipeline sends its output to Emacs quickly and the next command in the pipeline is slower. On receiving data from the first command in eshell-insertion-filter we call eshell-output-object to send it to the next command, but since sending might block, Emacs can run other process filters and sentinels instead. In this case, while sending a data chunk from cmd1 to cmd2, we actually end up reading all the data from cmd1 until it terminates and we call its sentinel. The sentinel closes the pipes and sends EOF to cmd2, but we still haven't sent the data from cmd1 to cmd2 yet. Closing the pipes in a timer, as in the patch below, seems to fix it for me. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=v1-0001-Make-sure-eshell-pipelines-don-t-drop-data.patch Content-Description: patch >From a1757a7114fbc20733554d8aa44cea0fa8a991e2 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Thu, 2 Feb 2017 09:19:43 -0500 Subject: [PATCH v1] Make sure eshell pipelines don't drop data * lisp/eshell/esh-proc.el (eshell-sentinel): If called while still handling output of the process, make sure to close the pipes only later, so that the next process in the pipeline recieves EOF only after getting all its input (Bug#25549). --- lisp/eshell/esh-proc.el | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/lisp/eshell/esh-proc.el b/lisp/eshell/esh-proc.el index b0dbb22..ba5cb5c 100644 --- a/lisp/eshell/esh-proc.el +++ b/lisp/eshell/esh-proc.el @@ -393,8 +393,20 @@ eshell-sentinel (unless (string= string "run") (unless (string-match "^\\(finished\\|exited\\)" string) (eshell-insertion-filter proc string)) - (eshell-close-handles (process-exit-status proc) 'nil - (cadr entry)))) + (let ((handles (nth 1 entry)) + (str (prog1 (nth 3 entry) + (setf (nth 3 entry) nil))) + (status (process-exit-status proc))) + ;; If we're in the middle of handling output + ;; from this process then schedule the EOF for + ;; later. + (letrec ((finish-io + (lambda () + (if (nth 4 entry) + (run-at-time 0 nil finish-io) + (when str (eshell-output-object str nil handles)) + (eshell-close-handles status 'nil handles))))) + (funcall finish-io))))) (eshell-remove-process-entry entry)))) (eshell-kill-process-function proc string))))) -- 2.9.3 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 08 23:45:28 2017 Received: (at control) by debbugs.gnu.org; 9 Feb 2017 04:45:28 +0000 Received: from localhost ([127.0.0.1]:60690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbgbo-00028o-3e for submit@debbugs.gnu.org; Wed, 08 Feb 2017 23:45:28 -0500 Received: from mail-it0-f46.google.com ([209.85.214.46]:38143) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbgbm-00028Z-PN; Wed, 08 Feb 2017 23:45:27 -0500 Received: by mail-it0-f46.google.com with SMTP id c7so8102838itd.1; Wed, 08 Feb 2017 20:45:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=A2nU+JS+LvxxAp3mkWWVVvRPm/qsolbG2h6Vt8x7IuA=; b=BfGaHDMF7G8wYZ3jzYpi/dBM/Q4Bfqj3lD9v415FeIr11P8xdE0AGn1aKf4MMpitu7 ef0pcdqRv6wIzi//Qpc+UZ18zTDNuHCbXzz40DQ2zgcqKjqL5z30Q1s2Pa7v0VyWVR98 ygFY5JJEmtJumlZX53PnjfKa9j+AsT6/gYjNM6GgT+bUVgCL9oo61Pt5iuhhhkqfQz2x RDWgZ3o2dAVY++MT3rkfe5ybiXaAOT8Ins9EJdADT5CH3ClElpr8E1SbD0n+OSKr7dw4 lksSy6YgFLeX6m5DczXZEm/yMdJFuXR4E6D4uImgahBThy1A+yhmraN+fBPI4/39epe4 LNhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=A2nU+JS+LvxxAp3mkWWVVvRPm/qsolbG2h6Vt8x7IuA=; b=HBe3dgAfSgP9QOsDk8SQ4GSvwwPhMvHTyBWAd/Jg+P2Pga3N1fqITOKA7grWN6LgMk vldhSjLxsjwulQSYvR0QhE1u9EyrASCw7s9Klc9+PeGcJLo1u/ps4T25kxmatoflDgMw lUWqHbB1AIEIKTuE3OPaGZ6O5HBttyPXWoXAA61EPmpGN4o8tpKEXnpSr93BGQVFwDNE dWe2uxV4fSq1cLwqt4Rf2NVmLcgyw69dyJ7qDc0dokEtrEyROnLYjF8WrCmYWfqLONF8 VhYhUEhZcx4LowX1q7XeOFicMctZHVvKAOfbfJAX/yIXlFMF2lpupG3sMWjzKD0dfHR1 wxAw== X-Gm-Message-State: AIkVDXIC403k6QnMpUh7BCEFUPNsNaSy92QpRufeETyMoYwjiRhD8D+v23KGy7UtRzmWSw== X-Received: by 10.36.73.211 with SMTP id e80mr19437288itd.88.1486615521156; Wed, 08 Feb 2017 20:45:21 -0800 (PST) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id 98sm12606480iol.5.2017.02.08.20.45.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 Feb 2017 20:45:20 -0800 (PST) From: npostavs@users.sourceforge.net To: Tijs Mallaerts Subject: Re: bug#25549: 25.1; eshell grep gives inconsistent output References: <87tw8lzdaj.fsf@it-alanm.williamson-tn.org> <87mve8q7vl.fsf_-_@users.sourceforge.net> <87mve4osxq.fsf@users.sourceforge.net> Date: Wed, 08 Feb 2017 23:46:30 -0500 In-Reply-To: <87mve4osxq.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net's message of "Thu, 02 Feb 2017 22:26:57 -0500") Message-ID: <87poism0nt.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: control Cc: me@alandmoore.com, 25549@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) tags 25549 fixed close 25549 26.1 quit npostavs@users.sourceforge.net writes: > > Closing the pipes in a timer, as in the patch below, seems to fix it for > me. Pushed to master, [1: 2bfe83fcd3]. 1: 2017-02-08 23:37:57 -0500 2bfe83fcd3575d03f371a7d0e6b8c5d661bc5ac7 Make sure eshell pipelines don't drop data From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 05 06:50:18 2017 Received: (at control) by debbugs.gnu.org; 5 Nov 2017 11:50:18 +0000 Received: from localhost ([127.0.0.1]:51296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBJRR-0006vG-S0 for submit@debbugs.gnu.org; Sun, 05 Nov 2017 06:50:17 -0500 Received: from mail-it0-f53.google.com ([209.85.214.53]:45971) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBJRR-0006v3-0S for control@debbugs.gnu.org; Sun, 05 Nov 2017 06:50:17 -0500 Received: by mail-it0-f53.google.com with SMTP id n195so2206889itg.0 for ; Sun, 05 Nov 2017 03:50:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version; bh=61btssE6icvGJ1jPK3u8VzPkIxnfFVb0GfkBOgGDkMQ=; b=rRzN4zmMKzFkR9pzp9R1aRzn4uciqBY+Ykd2tuNI4SmRTR+2PT2nK7KtS682Ajn0k+ Ss3/SU51hZUHzFmtGBmvi+tVoh4nGyCzJYGql7ipcZ+vcSlZ2v81O73ujuAgMHvq8g6c U4Qth3HZ85hp9l1Y19l+i+B641T3pjKe8DLwaMJz5YRqrMWz3+ErFUnLzWNwYQNi7nM2 J8Zx4RjeTDVXfq4e6Y9MKJ5ZOJHzeSApmHS+297He0lP25lrmRRk/vVeOHAoGsymiKSj LpcKGmfZcqit2DPYi+bmJsu0wewy2VTLQDj7GSArL2wO+nANrnQKnYP9cHNImLmA+WCN angA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=61btssE6icvGJ1jPK3u8VzPkIxnfFVb0GfkBOgGDkMQ=; b=fUIo37fAsjqNZPImOghMtXCtKLtuUEf1pwGTiD3XT484WKWCpoDEIgwv3hEBKdPjkn IQQc9GMXVbkAGf2+WAxD8jU5N/DMknRFpBI15rp4g9ttnIPqsLcz8dxogL8cdOwvQDLu TtV6pUzTWB1bZbJCpyvDTzh1wgdN1gc5uajxytGYjUAsjkLVDxqlqoGA+d5o+5Tov3RE SYGfP6NCGvpzGwJPIHKT4WkcL4abQVYsbLrYcTKDqizaA19VKBjZukl9+WexNkjiYvhk dIvY2ypwcbZ4SC7YYPsFzlHfvCuJbq17QkVSd4HciDmDfdbNBFZ2rTdqtURUQ2FS5Rln Bz4Q== X-Gm-Message-State: AJaThX5dJ2z/mRW5Mlf5n+fqCG2FJaSnpNev3dW71Q87Z2IJjwJfzSun PJeflfE3GtR6GVI4GIAs87MuBA== X-Google-Smtp-Source: ABhQp+RKHj20rQsrNc9REr3a2jhdVQYErxScNPRCDlXCzTI/VOFm3Adn1gz/0wfn7DvA+w90oKJoDw== X-Received: by 10.36.47.84 with SMTP id j81mr5412286itj.37.1509882611181; Sun, 05 Nov 2017 03:50:11 -0800 (PST) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id i62sm4543511ioe.31.2017.11.05.03.50.10 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 05 Nov 2017 03:50:10 -0800 (PST) From: Noam Postavsky To: control@debbugs.gnu.org Subject: control message for bug #25549 Date: Sun, 05 Nov 2017 06:50:09 -0500 Message-ID: <87r2td6j2m.fsf@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) # forgot to unarchive before merging unarchive 25549 merge 25549 29154 quit