[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] How to safely work on files/dirs with .
From: |
Eric Blake |
Subject: |
Re: [Help-bash] How to safely work on files/dirs with . |
Date: |
Mon, 21 Mar 2016 11:08:26 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
On 03/19/2016 11:31 AM, Bob Proulx wrote:
> Stephane Chazelas wrote:
>> chmod [...] +r [...]
>
> I saw this and wanted to comment. I tend to avoid bare permissions.
> Those that start with a + or - but don't specify one of the explicit
> [ugoa] letters. Because then it depends upon the setting of umask.
What's more, the +r form is unambiguous, but the -r form could be
ambiguous with using an option named '-r' rather than a mode setting
string (and in fact, GNU coreutils has different behavior for 'chmod -r
foo' than for 'chmod -- -r foo', precisely because POSIX gives it the
freedom to interpret -r as an option).
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Help-bash] How to safely work on files/dirs with ., David Niklas, 2016/03/12
- Re: [Help-bash] How to safely work on files/dirs with ., Bob Proulx, 2016/03/12
- Re: [Help-bash] How to safely work on files/dirs with ., Stephane Chazelas, 2016/03/14
- Re: [Help-bash] How to safely work on files/dirs with ., Greg Wooledge, 2016/03/14
- Re: [Help-bash] How to safely work on files/dirs with ., Stephane Chazelas, 2016/03/14
- Re: [Help-bash] How to safely work on files/dirs with ., Greg Wooledge, 2016/03/14
- Re: [Help-bash] How to safely work on files/dirs with ., Stephane Chazelas, 2016/03/14
- Re: [Help-bash] How to safely work on files/dirs with ., Bob Proulx, 2016/03/19
- Re: [Help-bash] How to safely work on files/dirs with ., Greg Wooledge, 2016/03/21
- Re: [Help-bash] How to safely work on files/dirs with .,
Eric Blake <=