From: michael@cadilhac.name (Michaël Cadilhac)
To: Juri Linkov <juri@jurta.org>
Cc: Dan Nicolaescu <dann@ics.uci.edu>,
emacs-devel@gnu.org, Miles Bader <miles@gnu.org>
Subject: Re: suggestion for set-file-modes
Date: Sat, 16 Feb 2008 21:04:42 -0500 [thread overview]
Message-ID: <877ih42v9h.fsf@cadilhac.name> (raw)
In-Reply-To: <87tzk8l671.fsf@jurta.org> (Juri Linkov's message of "Sun, 17 Feb 2008 03:31:14 +0200")
[-- Attachment #1: Type: text/plain, Size: 1710 bytes --]
Juri Linkov <juri@jurta.org> writes:
>> Soooo, why not convert it to an appropriate "input form" for putting in
>> the prompt/default ?
>>
>> E.g., -rwxrwxrw- => "ug=rwx,o=rw"
As I said to Dan before, I think symbolic notation is about applying a
mask to the existing file's modes, not editing them. Of course, after
`u=rwx,g=rwx,o=rw' I can (more or less comfortably) add my mask `,a-w',
but still, I don't see any case when I'd want to *edit* modes.
> That would be nice, maybe with separating every part even with the same
> permissions, e.g. "u=rwx,g=rwx,o=rw" for less editing when the user and
> group part need different permissions.
Well, what if I need to remove writing rights for everybody? There's
no canonical notation (why not `ugo=rw,ug+x', or `ugo=rwx,o-x'?), and
it'd be painful for the user to first read the mode to see if it fits
his needs, modify them if it's the case or apply a `,a-w' mask after if
it isn't.
I'm pretty much convinced we should not take an arbitrary decision
about that canonical form (the only canonical form I can think of is the
octal version). Well, all this is my own point of view: when I want to
remove write rights for everyone, I think about `a-w', not about going
through a description and editing it.
But again, if enough people think it could be useful, there's no
problem adding it.
--
| Michaël `Micha' Cadilhac | 21 seems like a good value: half of |
| http://michael.cadilhac.name | of 42 and just old enough to drink! |
| JID/MSN: | Why would you want to change it? |
`---- michael.cadilhac@gmail.com | -- Stefan Monnier - --'
[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]
next prev parent reply other threads:[~2008-02-17 2:04 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200801201812.m0KICxYl009632@sallyv1.ics.uci.edu>
[not found] ` <871w7jqiic.fsf@cadilhac.name>
[not found] ` <200802112200.m1BM0pke028675@sallyv1.ics.uci.edu>
2008-02-11 23:41 ` suggestion for set-file-modes Michaël Cadilhac
2008-02-16 19:19 ` Juri Linkov
2008-02-16 23:07 ` Michaël Cadilhac
2008-02-16 23:27 ` Juri Linkov
2008-02-17 0:14 ` Michaël Cadilhac
2008-02-17 0:48 ` Juri Linkov
2008-02-17 1:08 ` Miles Bader
2008-02-17 1:31 ` Juri Linkov
2008-02-17 2:04 ` Michaël Cadilhac [this message]
2008-02-17 2:21 ` Miles Bader
2008-02-17 21:54 ` Juri Linkov
2008-07-29 17:43 ` Juri Linkov
2008-02-17 1:39 ` Michaël Cadilhac
2008-02-17 20:29 ` Richard Stallman
2008-02-18 3:01 ` Michaël Cadilhac
2008-02-17 21:57 ` Juri Linkov
2008-02-17 21:55 ` Juri Linkov
2008-02-17 22:18 ` Miles Bader
2008-02-17 22:59 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877ih42v9h.fsf@cadilhac.name \
--to=michael@cadilhac.name \
--cc=dann@ics.uci.edu \
--cc=emacs-devel@gnu.org \
--cc=juri@jurta.org \
--cc=miles@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.