Date: Wed, 17 Sep 1997 01:18:51 +0200 (MESZ) From: Robert Eckardt <roberte@MEP.Ruhr-Uni-Bochum.de> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/4558: ls -d does not sort directories as plain files Message-ID: <199709162318.BAA19822@ghost.mep.ruhr-uni-bochum.de> Resent-Message-ID: <199709162320.QAA26404@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 4558 >Category: bin >Synopsis: ls -d does not sort directories as plain files >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Sep 16 16:20:00 PDT 1997 >Last-Modified: >Originator: Robert Eckardt >Organization: >Release: FreeBSD 2.2.2-RELEASE i386 >Environment: System from WC's 2.2.2 CD >Description: As documented in the man page ls's option `-d' should list directories as plain files. Therefore, one would expect that files and directories are sorted on an equal footing (as it is on SunOS5.4, AIX, Linux). However, the (sorted) directories are appended after the sorted files. I don't know whether this behaviour is considered `classic', but it is inconsistent and surprising. >How-To-Repeat: # cd to_an_empty_test_directory # touch a c # mkdir b # ls -l total 1 -rw-rw-r-- 1 roberte work 0 17 Sep 00:58 a drwxrwxr-x 2 roberte work 512 17 Sep 00:58 b -rw-rw-r-- 1 roberte work 0 17 Sep 00:58 c # ls -ld * -rw-rw-r-- 1 roberte work 0 17 Sep 00:58 a -rw-rw-r-- 1 roberte work 0 17 Sep 00:58 c drwxrwxr-x 2 roberte work 512 17 Sep 00:58 b >Fix: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709162318.BAA19822>