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: Pádraig Brady
Subject: Re: Feature Request: du --dir-with-slash
Date: Mon, 10 Mar 2008 09:38:48 +0000
User-agent: Thunderbird 2.0.0.6 (X11/20071008)

Thomas Guettler wrote:
> Pádraig Brady schrieb:
>> Thomas Guettler wrote:
>>   
>>> Hi,
>>>
>>> I use "du -ax / | sort -rn > /var/tmp/du-`date --iso`" to get the sorted
>>> total size of all
>>> files and directories.
>>>
>>> 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.
>>>     
> Thank you for being interested. I wrote a patch which makes the slash
> optional:
> 
> src/du --help:
>  ...
>   -z, --dir-with-slash  append a slash to directories.


I don't think it's worth an option TBH.
How about we do this iff POSIXLY_CORRECT environment variable is not set?

Pádraig.




reply via email to

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