bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature Request: du --dir-with-slash


From: Eric Blake
Subject: Re: Feature Request: du --dir-with-slash
Date: Fri, 07 Mar 2008 09:39:04 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Pádraig Brady on 3/7/2008 8:46 AM:
|> Unfortunately you can't see a difference between a directory and a file
|> in the output. It would be nice if the directories would be added by a
|> slash.
|
| How about the attaced patch?

I don't think you can do it by default - it must be via an option.  POSIX
states:

~    The output from du shall consist of the amount of space allocated to a
file and the name of the file, in the following format:

~    "%d %s\n", <size>, <pathname>

http://www.opengroup.org/onlinepubs/009695399/utilities/du.html
(where ' ' implies an arbitrary amount of whitespace characters).

I don't think we can arbitrarily add / to <pathname> and still comply with
POSIX.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH0W+n84KuGfSFAYARAqOPAJ9ENdTJiGU0uyBoI26Nk41hwtpBvACfbyd7
DfF4Tg5efZs9QTyMoDCEwC4=
=fyE3
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]