[Top][All Lists]

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

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

From: Jim Meyering
Subject: Re: Feature Request: du --dir-with-slash
Date: Mon, 10 Mar 2008 11:09:36 +0100

Pádraig Brady <address@hidden> wrote:
> Thomas Guettler wrote:
>> 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?

Hi Pádraig,

I don't like to encourage the use of POSIXLY_CORRECT,
and fear such a change might end up doing that.
Besides, the cost[*]/benefit ratio of adding trailing slashes by
default looks way too high.

[*] in potential portability hassles.
I.e., people could easily come to rely on the GNU df's trailing slashes,
and then inadvertently write non-portable scripts.

I'm very dubious about adding this as an option.
Do you really think an option is warranted for this,
considering you can already get the desired behavior
with a small wrapper, as I demonstrated:


By the way, someone's mail server (Thomas', I think) refused mail from my
IP address last time, and I'm not bothering to reroute to accommodate it.

reply via email to

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