From: Ted Zlatanov <tzz@lifelogs.com>
To: bug-gnu-emacs@gnu.org
Subject: Re: bug#699: grep in eshell incorrect
Date: Tue, 12 Aug 2008 15:18:55 -0500 [thread overview]
Message-ID: <86k5em3s28.fsf@lifelogs.com> (raw)
In-Reply-To: mailman.16486.1218568069.18990.bug-gnu-emacs@gnu.org
On Tue, 12 Aug 2008 21:54:29 +0300 Eli Zaretskii <eliz@gnu.org> wrote:
>> Cc: 699@emacsbugs.donarmstrong.com,
>> bug-gnu-emacs@gnu.org
>> From: xah lee <xah@xahlee.org>
>> Date: Tue, 12 Aug 2008 11:40:25 -0700
>>
>> So, possibly the eshell's "ls" command forming multiple columns is a
>> bad design. Because after all it is supposed to emulate the unix
>> shell behavior and "ls | grep xyz" is common idiom.
EZ> Yes, it _is_ supposed to emulate a Unix shell. But I just tried that
EZ> same pipe both on GNU/Linux and on MS-Windows, and in both cases "ls"
EZ> still forms multiple columns even in a pipe. So I don't see anything
EZ> wrong with how Eshell's "ls" works.
My tests show different results. On my Ubuntu system:
% /bin/ls
Makefile README.txt
% /bin/ls |/bin/grep M
Makefile
README.txt
% /bin/ls |/bin/grep E
README.txt
So if it's piped (probably /bin/ls tests if the terminal is not
interactive) it acts as if the -1 option is set. This is how it's
always worked for me, since I often do `ls -t | head -1` to find the
newest file in a directory.
Ted
next prev parent reply other threads:[~2008-08-12 20:18 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <orbpzugkci.fsf@fencepost.gnu.org>
2008-08-12 7:01 ` bug#699: grep in eshell incorrect xah lee
2008-08-12 18:27 ` Eli Zaretskii
2008-08-12 18:40 ` xah lee
2008-08-12 18:54 ` Eli Zaretskii
2008-08-12 19:03 ` xah lee
2008-08-12 19:19 ` Eli Zaretskii
2008-08-12 19:26 ` xah lee
2008-08-12 19:59 ` Glenn Morris
2008-08-12 20:10 ` Processed: " Emacs bug Tracking System
2008-08-13 2:42 ` Glenn Morris
2008-08-13 3:12 ` Eli Zaretskii
2008-08-13 3:21 ` Glenn Morris
[not found] ` <mailman.16486.1218568069.18990.bug-gnu-emacs@gnu.org>
2008-08-12 20:18 ` Ted Zlatanov [this message]
2008-08-13 3:24 ` Eli Zaretskii
2008-08-15 19:25 ` bug#699: marked as done (grep in eshell incorrect) Emacs bug Tracking System
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86k5em3s28.fsf@lifelogs.com \
--to=tzz@lifelogs.com \
--cc=bug-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.