From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: How to list directories in eshell Date: Thu, 16 Oct 2008 11:21:22 +1100 Organization: Rapt Technologies Message-ID: <874p3die4d.fsf@lion.rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1224117731 9706 80.91.229.12 (16 Oct 2008 00:42:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Oct 2008 00:42:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 16 02:43:11 2008 Return-path: Envelope-to: geh-help-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 1KqGxI-0008GQ-GF for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Oct 2008 02:43:08 +0200 Original-Received: from localhost ([127.0.0.1]:39221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KqGwD-00054k-Rp for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Oct 2008 20:42:01 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news.astraweb.com!border1.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:nD85pZ6ZFGW0yxJyT7JmEP4TQy0= Original-Lines: 35 Original-NNTP-Posting-Host: 87097929.news.astraweb.com Original-X-Trace: DXC=4T[Y1aC]cON7dZd0V0aUXKL?0kYOcDh@J; >GTR`=ZX:B8d7eNK7D9VEEa?; ]mMLnaLQ1_6Q0`<^cA Original-Xref: news.stanford.edu gnu.emacs.help:163488 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58830 Archived-At: Peter Dyballa 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 -- tcross (at) rapttech dot com dot au