Debian Bug report logs - #666244
ls: entangled directory display option

version graph

Package: coreutils; Maintainer for coreutils is Michael Stone <mstone@debian.org>; Source for coreutils is src:coreutils.

Reported by: Joey Hess <joeyh@debian.org>

Date: Thu, 29 Mar 2012 22:30:02 UTC

Severity: normal

Tags: patch

Found in version coreutils/8.13-3.1

Done: Joey Hess <joeyh@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Michael Stone <mstone@debian.org>:
Bug#666244; Package coreutils. (Thu, 29 Mar 2012 22:30:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Joey Hess <joeyh@debian.org>:
New Bug report received and forwarded. Copy sent to Michael Stone <mstone@debian.org>. (Thu, 29 Mar 2012 22:30:04 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Joey Hess <joeyh@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: ls: entangled directory display option
Date: Thu, 29 Mar 2012 18:27:59 -0400
[Message part 1 (text/plain, inline)]
Package: coreutils
Version: 8.13-3.1
Severity: normal
Tags: patch

While in the source of ls, I noticed an easy way to get it to do something
I've always wanted; display the contents of multiple directories as if
they were all in a single directory. Since -u (for "union") is already
in use, I picked option -e for entangle.

For example:

joey@gnu:/tmp> ls foo bar -e
barfile  foofile

It also works with -l (and other output formats), although for -l,
I left it displaying the individual directory block sizes.
Summing them would be a nice improvement.

joey@gnu:/tmp> ls foo bar . -e -l
total 0
total 0
total 0
drwxr-xr-x 2 joey joey  60 Mar 29 18:18 bar
-rw-r--r-- 1 joey joey   0 Mar 29 18:18 barfile
drwxr-xr-x 2 joey joey  60 Mar 29 18:17 foo
-rw-r--r-- 1 joey joey   0 Mar 29 18:17 foofile
drwx------ 2 joey joey  60 Mar 29 11:07 gpg-AXD46h
drwx------ 2 joey joey  60 Mar 29 11:07 ssh-BDuydssP2259

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 3.1.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages coreutils depends on:
ii  dpkg          1.16.2
ii  install-info  4.13a.dfsg.1-8
ii  libacl1       2.2.51-5
ii  libattr1      1:2.4.46-5
ii  libc6         2.13-27
ii  libselinux1   2.1.9-2

coreutils recommends no packages.

coreutils suggests no packages.

-- no debconf information

-- 
see shy jo
[entangle.patch (text/x-diff, attachment)]
[signature.asc (application/pgp-signature, inline)]

Reply sent to Joey Hess <joeyh@debian.org>:
You have taken responsibility. (Mon, 02 Apr 2012 18:36:10 GMT) Full text and rfc822 format available.

Notification sent to Joey Hess <joeyh@debian.org>:
Bug acknowledged by developer. (Mon, 02 Apr 2012 18:36:10 GMT) Full text and rfc822 format available.

Message #10 received at 666244-done@bugs.debian.org (full text, mbox):

From: Joey Hess <joeyh@debian.org>
To: 666198-done@bugs.debian.org, 666244-done@bugs.debian.org, 666684-done@bugs.debian.org, 666688-done@bugs.debian.org
Cc: Bob Proulx <bob@proulx.com>
Subject: Re: Bug#666198: ls: add -y option
Date: Mon, 2 Apr 2012 14:32:20 -0400
Bob Proulx wrote:
> Joey Hess wrote:
> > This is needed for compatability with an early form of shar archive
> > posted to Usenet in the early 80's. There is valuable historical data
> > to be extracted from these, but they often seem to use this -y option
> > to ls that is not present in modern versions.
> 
> This is an interesting compatibility feature.  As such I agree it has
> some merit although how much I don't know.  Put me down as officially
> abstaining from that point.  However:

This was a set up for
http://kitenet.net/~joey/blog/entry/ls:_the_missing_options/

This article http://article.olduse.net/286@Apur-ee.UUCP about COBOL
was edited to create a fairly convincing historical proof of a ls -y.
I think only fairly convincing because it's unclear why a shar would
ever need to ls files, even back in the 80's!

As to the other options, multiple people agree that -e is nearly almost
useful, although none of us can quite find a reason to use it. My bug
report neglected to mention that ls -eR is very buggy. -j is clearly a joke.

-- 
see shy jo




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 01 May 2012 07:38:17 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Apr 16 23:37:03 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.