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 11:40:25 -0700 Message-ID: <747E865A-7D6B-4601-98D2-285CD5874D2B@xahlee.org> References: 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 1218568126 14742 80.91.229.12 (12 Aug 2008 19:08:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Aug 2008 19:08:46 +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:09: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 1KSzFI-0000ej-Gn for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Aug 2008 21:09:28 +0200 Original-Received: from localhost ([127.0.0.1]:44301 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSzEM-0001Ke-DY for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Aug 2008 15:08:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KSzDW-00011y-Th for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 15:07:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KSzDT-0000zl-6Z for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 15:07:37 -0400 Original-Received: from [199.232.76.173] (port=48312 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSzDT-0000zi-4O for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 15:07:35 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:46241) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KSzDS-0000c3-9x for bug-gnu-emacs@gnu.org; Tue, 12 Aug 2008 15:07:34 -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 m7CJ7Os1025944; Tue, 12 Aug 2008 12:07:28 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7CIo5Lo019497; Tue, 12 Aug 2008 11:50:05 -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 18:50:05 +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 699-submit@emacsbugs.donarmstrong.com id=B699.121856645817509 (code B ref 699); Tue, 12 Aug 2008 18:50:05 +0000 Original-Received: (at 699) by emacsbugs.donarmstrong.com; 12 Aug 2008 18:40:58 +0000 Original-Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7CIesHV017503 for <699@emacsbugs.donarmstrong.com>; Tue, 12 Aug 2008 11:40:55 -0700 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-1KSyna0rHB-00057O; Tue, 12 Aug 2008 14:40:53 -0400 In-Reply-To: X-Mailer: Apple Mail (2.753.1) X-Provags-ID: V01U2FsdGVkX1/3DiRXull6XDovWkgcDXLLmemnFl8gZtpIxgq 1tPbbjanBBn9/+0n97fWoqaGRhnc1xrUHxmxU8YV+8RKgtSo0J CobmhhCWQSH/hdx/dmegw== X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Tue, 12 Aug 2008 15:07:37 -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:19330 Archived-At: > Would you please care to explain what is wrong with it? As far as I > see, each line has a "lin" substring somewhere in it (modulo the > evident line wrapping). Thanks. I never realized that. Anyway, i thought this is unexpected behavior. For example, on mac os =20= x's teminal, it would give this: [xah@xahg5][Tue Aug 12 11:37:38][~/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 11:37:40][~/web/emacs] So, possibly the eshell's "ls" command forming multiple columns is a =20 bad design. Because after all it is supposed to emulate the unix =20 shell behavior and "ls | grep xyz" is common idiom. Xah =E2=88=91 http://xahlee.org/ =E2=98=84 On Aug 12, 2008, at 11:27 AM, Eli Zaretskii wrote: > From: xah lee > Date: Tue, 12 Aug 2008 00:01:04 -0700 > Cc: > > > The =E2=80=9Cgrep=E2=80=9D utility in =E2=80=9Ceshell=E2=80=9D is = incorrect. Here's is a > eshell log that illustrate it: > > ------------------------------ > > Welcome to the Emacs shell > > ~/web/emacs $ which grep > eshell/grep is a compiled Lisp function in `em-unix.el' > ~/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 $ Would you please care to explain what is wrong with it? As far as I see, each line has a "lin" substring somewhere in it (modulo the evident line wrapping). =E2=98=84