From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: xah lee Newsgroups: gmane.emacs.bugs Subject: bug#699: grep in eshell incorrect Date: Tue, 12 Aug 2008 12:26:28 -0700 Message-ID: <61CB4681-396A-402B-9245-BEC07C3F2279@xahlee.org> References: <747E865A-7D6B-4601-98D2-285CD5874D2B@xahlee.org> <0ACC5CA6-7146-4D02-AE56-1AC44A87D74A@xahlee.org> Reply-To: xah lee , 699@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=UTF-8; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1218570487 23169 80.91.229.12 (12 Aug 2008 19:48:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Aug 2008 19:48:07 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, 699@emacsbugs.donarmstrong.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 12 21:48:59 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 1KSzrS-0000JN-LE for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Aug 2008 21:48:54 +0200 Original-Received: from localhost ([127.0.0.1]:58787 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSzqU-0007hf-9p for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Aug 2008 15:47:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KSzq8-0007VH-66 for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 15:47:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KSzq6-0007U6-Lu for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 15:47:31 -0400 Original-Received: from [199.232.76.173] (port=51189 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSzq5-0007TW-7X for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 15:47:29 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:53176) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KSzq4-0006bD-77 for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 15:47:28 -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 m7CJlPaC005682; Tue, 12 Aug 2008 12:47:25 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7CJZ3MB001437; Tue, 12 Aug 2008 12:35:03 -0700 X-Loop: don@donarmstrong.com Resent-From: xah lee Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 12 Aug 2008 19:35: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: unreproducible moreinfo Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121856922532015 (code B ref -1); Tue, 12 Aug 2008 19:35:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 12 Aug 2008 19:27:05 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7CJR1ao032009 for ; Tue, 12 Aug 2008 12:27:02 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KSzWH-0004pM-An for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 15:27:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KSzWG-0004p4-Lu for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 15:27:01 -0400 Original-Received: from [199.232.76.173] (port=38135 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSzWG-0004ox-Fh for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 15:27:00 -0400 Original-Received: from mout.perfora.net ([74.208.4.196]:56186) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KSzWB-0007Qk-Qk; Tue, 12 Aug 2008 15:26:56 -0400 Original-Received: from [192.168.1.2] (c-24-6-97-120.hsd1.ca.comcast.net [24.6.97.120]) by mrelay.perfora.net (node=mrus1) with ESMTP (Nemesis) id 0MKpCa-1KSzW80c4T-0005Ml; Tue, 12 Aug 2008 15:26:55 -0400 In-Reply-To: X-Mailer: Apple Mail (2.753.1) X-Provags-ID: V01U2FsdGVkX1/4p6uakl3JoUNg2l46qeKAvYPLZbuq3+IXCgW TAq4Sy8vabs6pCbDEit3IV/7CViu7W8h7JTqKMfP5hUn/KDO0k 94FO8jbrsZe6l7A41rcMw== X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-CrossAssassin-Score: 2 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Tue, 12 Aug 2008 15:47:30 -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:19344 Archived-At: for example, i want to use "ls | grep lin" to find file names =20 containing "lin". In OSX, i do: [xah@xahg5][Tue Aug 12 12:25:04][~/web/emacs] ls | grep lin elisp_link_report.el elisp_link_report.el~ elisp_link_report.html elisp_make_link.html emacs_installing_packages.html xah_emacs_linkify.el xah_emacs_linkify.el~ [xah@xahg5][Tue Aug 12 12:25:10][~/web/emacs] --------------------- in eshell, i get: Welcome to the Emacs shell /Users/xah/Documents/temp $ cd ~/web/emacs ~/web/emacs $ ls | grep lin elisp_link_report.el modernization.html elisp_link_report.el~ modernization_html_mail.html elisp_link_report.html modernization_meta_key.html elisp_make_link.html ms_keyboard emacs_installing_packages.html wrap-url2.html.gz emacs_manual_problem.html xah_emacs_linkify.el emacs_n_unicode.html xah_emacs_linkify.el~ ~/web/emacs $ --------------------- Xah =E2=88=91 http://xahlee.org/ =E2=98=84 On Aug 12, 2008, at 12:19 PM, Eli Zaretskii wrote: > Cc: 699@emacsbugs.donarmstrong.com, > bug-gnu-emacs@gnu.org > From: xah lee > Date: Tue, 12 Aug 2008 12:03:55 -0700 > > Ok. I just did ls, and yes it forms multi columns. > > However, when i do > > ls | grep xyz > > it doesn't produce the result eshell would. i.e. the multi column > produced by ls seems to be a done as display formatting, not as its > real output. Sorry, I don't understand: what's the difference between ``display formatting'' and ``real output''? You don't see the output of `ls' _except_ formatted by it. > I might be wrong... but i mean the bottom line is that " > ls | grep some" have different behavior in unix shell and eshell. And I see the _same_ behavior, modulo the different defaults about how many columns to put on one line. =E2=98=84