help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to list directories in eshell


From: Lorenzo Isella
Subject: Re: How to list directories in eshell
Date: Thu, 16 Oct 2008 20:50:51 +0200
User-agent: Mozilla-Thunderbird 2.0.0.16 (X11/20080724)


From: Tim X <timx@nospam.dev.null>
Subject: Re: How to list directories in eshell
To: help-gnu-emacs@gnu.org
Message-ID: <874p3die4d.fsf@lion.rapttech.com.au>
Content-Type: text/plain; charset=us-ascii

Peter Dyballa <Peter_Dyballa@Web.DE> writes:

Am 15.10.2008 um 11:56 schrieb Lorenzo Isella:

Within bash, I can easily list the directories only within the current
directory by issuing for instance

$ ls -d */
This is a malfunction in bash. 'ls -d' tells ls to list everything as a
directory. In tcsh your command works correctly, i.e., it lists all
visible entries as if they were directories.


Seems odd for it to be a bash problem if it works fine under bash as the
OP indicates.
Note that in emacs 23, eshell and ls -d * works as expected i.e. only
gives directory names and not contents - the same as it does when run
under bash. I'm running
GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-10-11 on 
lion
GNU bash, version 3.2.39(1)-release (i486-pc-linux-gnu)
ls (GNU coreutils) 6.10
Linux lion 2.6.26-1-686 #1 SMP Wed Oct 1 12:03:14 UTC 2008 i686 GNU/Linux

What version of emacs and bash and what platform is the OP on?

Tim

Hello,
I am running Debian testing on my box and emacs 22. I solved the problem defining the alias:

alias lsd ls -la $* | grep "^d"

Cheers

Lorenzo




reply via email to

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