From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#699: grep in eshell incorrect Date: Tue, 12 Aug 2008 22:42:49 -0400 Message-ID: <8l1w0thbyu.fsf@fencepost.gnu.org> References: <747E865A-7D6B-4601-98D2-285CD5874D2B@xahlee.org> <0ACC5CA6-7146-4D02-AE56-1AC44A87D74A@xahlee.org> Reply-To: Glenn Morris , 699@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218596864 27400 80.91.229.12 (13 Aug 2008 03:07:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Aug 2008 03:07:44 +0000 (UTC) Cc: xah lee To: 699@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 13 05:08:36 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KT6ix-0002Bu-H6 for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Aug 2008 05:08:35 +0200 Original-Received: from localhost ([127.0.0.1]:41370 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KT6i1-0005gH-6n for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Aug 2008 23:07:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KT6ht-0005aJ-0h for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 23:07:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KT6hr-0005Yj-CL for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 23:07:28 -0400 Original-Received: from [199.232.76.173] (port=56479 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KT6hr-0005Yd-9c for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 23:07:27 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:57941) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KT6hr-0003ub-Fm for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 23:07:27 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7D37Pr2012749; Tue, 12 Aug 2008 20:07:25 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7D2o4uT006356; Tue, 12 Aug 2008 19:50:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Glenn Morris Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 13 Aug 2008 02:50:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 699 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 699-submit@emacsbugs.donarmstrong.com id=B699.12185954444659 (code B ref 699); Wed, 13 Aug 2008 02:50:03 +0000 Original-Received: (at 699) by emacsbugs.donarmstrong.com; 13 Aug 2008 02:44:04 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7D2i0Kl004653 for <699@emacsbugs.donarmstrong.com>; Tue, 12 Aug 2008 19:44:02 -0700 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KT6K1-0005P3-Fq; Tue, 12 Aug 2008 22:42:49 -0400 X-Spook: Venezuela top secret Abu Ghraib Agfa Operation Iraqi X-Ran: D*m:{|&#/V9E$,awt`8%LbvGQ)&y]q(Em`";h~beE~=T!:3&e'L5?t[6JK0bH8\\$*%eSE X-Hue: white X-Attribution: GM In-Reply-To: (Glenn Morris's message of "Tue, 12 Aug 2008 15:59:05 -0400") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Tue, 12 Aug 2008 23:07:28 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19359 Archived-At: Actually, it seems this is easy to fix. (Except that now eshell/ls behaves differently to normal ls at the end of pipeline, but that's probably less common.) *** em-ls.el 7 Jun 2008 02:37:12 -0000 1.33 --- em-ls.el 13 Aug 2008 02:37:48 -0000 *************** *** 635,641 **** "Output a list of FILES. Each member of FILES is either a string or a cons cell of the form \(FILE . ATTRS)." ! (if (memq listing-style '(long-listing single-column)) (eshell-for file files (if file (eshell-ls-file file size-width copy-fileinfo))) --- 635,642 ---- "Output a list of FILES. Each member of FILES is either a string or a cons cell of the form \(FILE . ATTRS)." ! (if (or eshell-in-pipeline-p ! (memq listing-style '(long-listing single-column))) (eshell-for file files (if file (eshell-ls-file file size-width copy-fileinfo)))