bug-coreutils
[Top][All Lists]
Advanced

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

Re: chmod 0755 behaves like chmod 755


From: Evan Hunt
Subject: Re: chmod 0755 behaves like chmod 755
Date: Thu, 4 Oct 2007 11:36:43 -0700
User-agent: Mutt/1.5.10i

> I believe that on some implementatiions, both commands clear the bit;
> POSIX allows this too.

And that's the mandated behavior with files, isn't it?

It seems to me that, unless POSIX disallows it--and you just said it
doesn't--the principle of least surprise calls for chmod to behave the
same way with both files and directories.

> Sorry, but there is no consensus here, and portable scripts have to take
> this into account.

Clearly true, and will remain true whatever coreutils does, so let's
do the most sensible thing.

Evan Hunt




reply via email to

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