all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lorenzo Isella <lorenzo.isella@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to list directories in eshell
Date: Thu, 16 Oct 2008 20:50:51 +0200	[thread overview]
Message-ID: <48F78D0B.4060501@gmail.com> (raw)
In-Reply-To: <48f7101c.241e640a.77f5.ffffe26cSMTPIN_ADDED@mx.google.com>


> 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	other threads:[~2008-10-16 18:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <48f7101c.241e640a.77f5.ffffe26cSMTPIN_ADDED@mx.google.com>
2008-10-16 18:50 ` Lorenzo Isella [this message]
2008-10-15  9:56 How to list directories in eshell Lorenzo Isella
2008-10-15 10:12 ` Peter Dyballa
     [not found] ` <mailman.1100.1224065660.25473.help-gnu-emacs@gnu.org>
2008-10-16  0:21   ` Tim X

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=48F78D0B.4060501@gmail.com \
    --to=lorenzo.isella@gmail.com \
    --cc=help-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.