From owner-freebsd-bugs Tue Sep 16 16:20:06 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA26416 for bugs-outgoing; Tue, 16 Sep 1997 16:20:06 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA26404; Tue, 16 Sep 1997 16:20:02 -0700 (PDT) Resent-Date: Tue, 16 Sep 1997 16:20:02 -0700 (PDT) Resent-Message-Id: <199709162320.QAA26404@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, roberte@MEP.Ruhr-Uni-Bochum.de Received: from ghost.mep.ruhr-uni-bochum.de (ghost.mep.ruhr-uni-bochum.de [134.147.6.33]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA26313 for ; Tue, 16 Sep 1997 16:18:52 -0700 (PDT) Received: (from roberte@localhost) by ghost.mep.ruhr-uni-bochum.de (8.8.5/8.8.4) id BAA19822; Wed, 17 Sep 1997 01:18:51 +0200 (MESZ) Message-Id: <199709162318.BAA19822@ghost.mep.ruhr-uni-bochum.de> Date: Wed, 17 Sep 1997 01:18:51 +0200 (MESZ) From: Robert Eckardt Reply-To: roberte@MEP.Ruhr-Uni-Bochum.de To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/4558: ls -d does not sort directories as plain files Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >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: