[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#699: grep in eshell incorrect

From: xah lee
Subject: bug#699: grep in eshell incorrect
Date: Tue, 12 Aug 2008 12:26:28 -0700

for example, i want to use "ls | grep lin" to find file names containing "lin". In OSX, i do:

address@hidden Aug 12 12:25:04][~/web/emacs]
ls | grep lin
address@hidden 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 $


∑ http://xahlee.org/


On Aug 12, 2008, at 12:19 PM, Eli Zaretskii wrote:

Cc: address@hidden,
From: xah lee <address@hidden>
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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]