From unknown Sat Jun 14 19:29:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8736: chmod -p --parents Resent-From: francky.leyn@telenet.be Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 26 May 2011 22:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8736 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 8736@debbugs.gnu.org Cc: Francky Leyn X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.130644903231191 (code B ref -1); Thu, 26 May 2011 22:31:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 May 2011 22:30:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QPj4Z-000871-Fl for submit@debbugs.gnu.org; Thu, 26 May 2011 18:30:32 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QPgvj-0004rn-Qw for submit@debbugs.gnu.org; Thu, 26 May 2011 16:13:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPgvd-00040r-KD for submit@debbugs.gnu.org; Thu, 26 May 2011 16:13:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:34970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPgvd-00040n-Ic for submit@debbugs.gnu.org; Thu, 26 May 2011 16:13:09 -0400 Received: from eggs.gnu.org ([140.186.70.92]:37964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPgvc-0005vW-KO for bug-coreutils@gnu.org; Thu, 26 May 2011 16:13:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPgvb-00040X-FQ for bug-coreutils@gnu.org; Thu, 26 May 2011 16:13:08 -0400 Received: from jacques.telenet-ops.be ([195.130.132.50]:39647) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPgvb-00040G-6H for bug-coreutils@gnu.org; Thu, 26 May 2011 16:13:07 -0400 Received: from zcsnocm01.telenet-ops.be ([213.224.144.65]) by jacques.telenet-ops.be with bizsmtp id oLD51g0031QsfP10JLD5lY; Thu, 26 May 2011 22:13:05 +0200 Date: Thu, 26 May 2011 22:13:05 +0200 (CEST) From: francky.leyn@telenet.be Message-ID: <750769315.19883741306440785311.JavaMail.root@thulani.telenet-ops.be> In-Reply-To: <2130123592.19883641306440718404.JavaMail.root@thulani.telenet-ops.be> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1093969_1477358047.1306440785310" X-Originating-IP: [178.117.196.98] X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.6 (------) X-Mailman-Approved-At: Thu, 26 May 2011 18:30:30 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) ------=_Part_1093969_1477358047.1306440785310 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello,=20 In the past, I was an advocate of the -p --parents option for=20 mkdir. By now this is realised. Now I'm doing the same for chmod.=20 I want this option for chmod for the following reason.=20 I want my home directory shut. I do this with=20 "chmod -R gw-rwx". The problem arises when I want to=20 set open some file for group or world. Then I have to set=20 open each directory level concerning this file. These=20 can be=C2=A0numerious directories. All this is cumbersome, and a=20 waist of time and energy.=20 I want to be able to execute the following:=20 chmod a+rx -p ~/dir1/dir2/dir3/file.ext=20 It should be more refined however: the dirs=20 should be rx, but the file only r.=20 Please let me hear something.=20 Best regards,=20 Francky Leyn,=20 www.Leyn.eu ------=_Part_1093969_1477358047.1306440785310 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

Hello,

 

In the past, I was an advocate of the -p --parents option for

mkdir. By now this is realised. Now I'm doing the same for chmod.

 

I want this option for chmod for the following reason.

I want my home directory shut. I do this with

"chmod -R gw-rwx". The problem arises when I want to

set open some file for group or world. Then I have to set

open each directory level concerning this file. These

can be numerious directories. All this is cumbersome, and a

waist of time and energy.

 

I want to be able to execute the following:

chmod a+rx -p ~/dir1/dir2/dir3/file.ext
It should be more refined however: the dirs

should be rx, but the file only r.

 

Please let me hear something.

 

Best regards,

 

Francky Leyn,

 

www.Leyn.eu

------=_Part_1093969_1477358047.1306440785310-- From unknown Sat Jun 14 19:29:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8736: chmod -p --parents Resent-From: Erik Auerswald Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Fri, 27 May 2011 14:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8736 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: francky.leyn@telenet.be Cc: 8736@debbugs.gnu.org, Francky Leyn Received: via spool by 8736-submit@debbugs.gnu.org id=B8736.1306508107864 (code B ref 8736); Fri, 27 May 2011 14:56:02 +0000 Received: (at 8736) by debbugs.gnu.org; 27 May 2011 14:55:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QPyRO-0000Dt-O3 for submit@debbugs.gnu.org; Fri, 27 May 2011 10:55:06 -0400 Received: from mailgw1.uni-kl.de ([131.246.120.220]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QPyRM-0000DQ-7R for 8736@debbugs.gnu.org; Fri, 27 May 2011 10:55:05 -0400 Received: from sushi.unix-ag.uni-kl.de (sushi.unix-ag.uni-kl.de [IPv6:2001:638:208:ef34:0:ff:fe00:65]) by mailgw1.uni-kl.de (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p4REsvN7018218 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 27 May 2011 16:54:57 +0200 Received: from sushi.unix-ag.uni-kl.de (ip6-localhost [IPv6:::1]) by sushi.unix-ag.uni-kl.de (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p4REsvjG025009 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 27 May 2011 16:54:57 +0200 Received: (from auerswal@localhost) by sushi.unix-ag.uni-kl.de (8.14.3/8.14.3/Submit) id p4REsvRX025008; Fri, 27 May 2011 16:54:57 +0200 Date: Fri, 27 May 2011 16:54:57 +0200 From: Erik Auerswald Message-ID: <20110527145457.GA20950@sushi.unix-ag.uni-kl.de> References: <2130123592.19883641306440718404.JavaMail.root@thulani.telenet-ops.be> <750769315.19883741306440785311.JavaMail.root@thulani.telenet-ops.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <750769315.19883741306440785311.JavaMail.root@thulani.telenet-ops.be> User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam-Score: -6.6 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) Hi, On Thu, May 26, 2011 at 10:13:05PM +0200, francky.leyn@telenet.be wrote: > > In the past, I was an advocate of the -p --parents option for > mkdir. By now this is realised. Now I'm doing the same for chmod. > [...] > I want to be able to execute the following: > > chmod a+rx -p ~/dir1/dir2/dir3/file.ext I like the proposal. > It should be more refined however: the dirs > should be rx, but the file only r. You can use a capital X to automatically handle the directory case. But please take a look at the docs for the _exact_ meaning of X. Regards, Erik -- In the beginning, there were not enough colors. -- Guy Keren From unknown Sat Jun 14 19:29:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8736: chmod -p --parents References: <750769315.19883741306440785311.JavaMail.root@thulani.telenet-ops.be> In-Reply-To: <750769315.19883741306440785311.JavaMail.root@thulani.telenet-ops.be> Resent-From: =?UTF-8?Q?J=C3=A9r=C3=A9my?= Compostella Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 22 Feb 2012 23:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8736 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Erik Auerswald Cc: 8736@debbugs.gnu.org, coreutils@gnu.org, francky.leyn@telenet.be Received: via spool by 8736-submit@debbugs.gnu.org id=B8736.132995417924919 (code B ref 8736); Wed, 22 Feb 2012 23:43:02 +0000 Received: (at 8736) by debbugs.gnu.org; 22 Feb 2012 23:42:59 +0000 Received: from localhost ([127.0.0.1]:51643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S0Lpp-0006Tr-RP for submit@debbugs.gnu.org; Wed, 22 Feb 2012 18:42:58 -0500 Received: from mail-we0-f172.google.com ([74.125.82.172]:45036) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S0Lpf-0006TR-AC for 8736@debbugs.gnu.org; Wed, 22 Feb 2012 18:42:49 -0500 Received: by werg1 with SMTP id g1so409108wer.3 for <8736@debbugs.gnu.org>; Wed, 22 Feb 2012 15:40:16 -0800 (PST) Received-SPF: pass (google.com: domain of jeremy.compostella@gmail.com designates 10.180.90.225 as permitted sender) client-ip=10.180.90.225; Authentication-Results: mr.google.com; spf=pass (google.com: domain of jeremy.compostella@gmail.com designates 10.180.90.225 as permitted sender) smtp.mail=jeremy.compostella@gmail.com; dkim=pass header.i=jeremy.compostella@gmail.com Received: from mr.google.com ([10.180.90.225]) by 10.180.90.225 with SMTP id bz1mr828685wib.5.1329954016942 (num_hops = 1); Wed, 22 Feb 2012 15:40:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:cc:date:message-id:mime-version:content-type; bh=ADXWFjk7ks65DwOSAuQ2FA8Zph4X3xoL0HSwHnLDGto=; b=Qe43HxPyflCAahyvXdcvakhUsteOx2/3vJbUuyg4AXAnOtueTjhmWjiEqddAKC3ESv R3EDcEuEm2RHF/qASUBAMNQA4juX1g3c0NBmEtIxm61JaE6SKSDiNjHjQ5ygfsg/jpmZ +FSQy9fLPNNy6HDii5eDivbuqpnR2Ubon9Hk4= Received: by 10.180.90.225 with SMTP id bz1mr677951wib.5.1329954016866; Wed, 22 Feb 2012 15:40:16 -0800 (PST) Received: from Apollo.jerryland.fr ([85.69.251.50]) by mx.google.com with ESMTPS id cs4sm2059126wib.8.2012.02.22.15.40.13 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Feb 2012 15:40:14 -0800 (PST) From: =?UTF-8?Q?J=C3=A9r=C3=A9my?= Compostella Date: Thu, 23 Feb 2012 00:40:37 +0100 Message-ID: <878vju3096.fsf@Apollo.jerryland.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > Hi, >=20 > On Thu, May 26, 2011 at 10:13:05PM +0200, francky.leyn telenet.be wr= ote: > >=20 > > In the past, I was an advocate of the -p --parents option for=20 > > mkdir. By now this is realised. Now I'm doing the same for chmod.=20 > > [...] > > I want to be able to execute the following:=20 > >=20 > > chmod a+rx -p ~/dir1/dir2/dir3/file.ext=20 >=20 > I like the proposal. > > It should be more refined however: the dirs=20 > > should be rx, but the file only r.=20 >=20 > You can use a capital X to automatically handle the directory case. But > please take a look at the docs for the _exact_ meaning of X. I made a first implementation of this chmod --parents feature (see the attached patch). I do not support the second part since 'X' is already in used for the "Conditional Executability" feature. I have no idea how to support it. I don't have written the documentation for now. I would like to have your opinion about this patch first as I maybe missed some corner case or the code should be written another way or even something else ... I really hope you will find time to look at it. Cheers, J=C3=A9r=C3=A9my --- Sent from my Emacs --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-chmod-add-parents-option.patch Content-Description: chmod: --parents option patch >From 5de3629e2f181779460947ea8693561692425d75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Compostella?= Date: Thu, 23 Feb 2012 00:11:41 +0100 Subject: [PATCH] chmod: add --parents option * chmod.c (main): Handle --parents option. --- src/chmod.c | 51 ++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 48 insertions(+), 3 deletions(-) diff --git a/src/chmod.c b/src/chmod.c index a134e3f..4378459 100644 --- a/src/chmod.c +++ b/src/chmod.c @@ -96,6 +96,7 @@ static struct option const long_options[] = { {"changes", no_argument, NULL, 'c'}, {"recursive", no_argument, NULL, 'R'}, + {"parents", no_argument, NULL, 'p'}, {"no-preserve-root", no_argument, NULL, NO_PRESERVE_ROOT}, {"preserve-root", no_argument, NULL, PRESERVE_ROOT}, {"quiet", no_argument, NULL, 'f'}, @@ -416,6 +417,7 @@ main (int argc, char **argv) size_t mode_alloc = 0; bool ok; bool preserve_root = false; + bool parents = false; char const *reference_file = NULL; int c; @@ -430,7 +432,7 @@ main (int argc, char **argv) recurse = force_silent = diagnose_surprises = false; while ((c = getopt_long (argc, argv, - "Rcfvr::w::x::X::s::t::u::g::o::a::,::+::=::", + "Rpcfvr::w::x::X::s::t::u::g::o::a::,::+::=::", long_options, NULL)) != -1) { @@ -484,6 +486,9 @@ main (int argc, char **argv) case REFERENCE_FILE_OPTION: reference_file = optarg; break; + case 'p': + parents = true; + break; case 'R': recurse = true; break; @@ -544,6 +549,12 @@ main (int argc, char **argv) umask_value = umask (0); } + if (recurse && parents) + { + error (0, 0, _("--recurse and --parents are mutually exclusive")); + usage (EXIT_FAILURE); + } + if (recurse && preserve_root) { static struct dev_ino dev_ino_buf; @@ -557,8 +568,42 @@ main (int argc, char **argv) root_dev_ino = NULL; } - ok = process_files (argv + optind, - FTS_COMFOLLOW | FTS_PHYSICAL | FTS_DEFER_STAT); + if (! parents) + ok = process_files (argv + optind, + FTS_COMFOLLOW | FTS_PHYSICAL | FTS_DEFER_STAT); + else + { + char **first = argv + optind; + char **end = argv + argc; + while (end != first) + { + ok = process_files (first, + FTS_COMFOLLOW | FTS_PHYSICAL | FTS_DEFER_STAT); + if (! ok) + break; + + char **current = end - 1; + do + { + char *last = last_component (*current); + if (last != *current) { + /* Skiping slashes preceding the last component */ + while (ISSLASH (*--last) && last != *current) + ; + if (! ISSLASH (*last)) + *++last = '\0'; + } + if (last == *current) + { + /* Remove CURRENT by shifting ARGV to left from there */ + end = current - 1; + while (*end && end++) + *end = *(end + 1); + } + } + while (current-- != first); + } + } exit (ok ? EXIT_SUCCESS : EXIT_FAILURE); } -- 1.7.2.5 --=-=-=-- From unknown Sat Jun 14 19:29:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8736: chmod -p --parents Resent-From: Jim Meyering Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 23 Feb 2012 11:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8736 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: =?UTF-8?Q?J=C3=A9r=C3=A9my?= Compostella Cc: Erik Auerswald , 8736@debbugs.gnu.org, coreutils@gnu.org, francky.leyn@telenet.be Received: via spool by 8736-submit@debbugs.gnu.org id=B8736.132999521827685 (code B ref 8736); Thu, 23 Feb 2012 11:07:01 +0000 Received: (at 8736) by debbugs.gnu.org; 23 Feb 2012 11:06:58 +0000 Received: from localhost ([127.0.0.1]:52049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S0WVk-0007CS-IK for submit@debbugs.gnu.org; Thu, 23 Feb 2012 06:06:57 -0500 Received: from mx.meyering.net ([88.168.87.75]:50493) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S0WVg-0007CG-1T for 8736@debbugs.gnu.org; Thu, 23 Feb 2012 06:06:53 -0500 Received: from rho.meyering.net (localhost.localdomain [127.0.0.1]) by rho.meyering.net (Acme Bit-Twister) with ESMTP id 0A6F460052; Thu, 23 Feb 2012 12:04:23 +0100 (CET) From: Jim Meyering In-Reply-To: <878vju3096.fsf@Apollo.jerryland.fr> ("=?UTF-8?Q?J=C3=A9r=C3=A9my?= Compostella"'s message of "Thu, 23 Feb 2012 00:40:37 +0100") References: <878vju3096.fsf@Apollo.jerryland.fr> Date: Thu, 23 Feb 2012 12:04:22 +0100 Message-ID: <8739a1u7yh.fsf@rho.meyering.net> Lines: 51 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) J=E9r=E9my Compostella wrote: >> On Thu, May 26, 2011 at 10:13:05PM +0200, francky.leyn telenet.be w= rote: >> > >> > In the past, I was an advocate of the -p --parents option for >> > mkdir. By now this is realised. Now I'm doing the same for chmod. >> > [...] >> > I want to be able to execute the following: >> > >> > chmod a+rx -p ~/dir1/dir2/dir3/file.ext >> >> I like the proposal. >> > It should be more refined however: the dirs >> > should be rx, but the file only r. >> >> You can use a capital X to automatically handle the directory case. But >> please take a look at the docs for the _exact_ meaning of X. > I made a first implementation of this chmod --parents feature (see the > attached patch). I do not support the second part since 'X' is already > in used for the "Conditional Executability" feature. I have no idea how > to support it. > > I don't have written the documentation for now. I would like to have > your opinion about this patch first as I maybe missed some corner case > or the code should be written another way or even something else ... > > I really hope you will find time to look at it. Hi J=E9r=E9my, Thank you for the patch, but as usual with option-adding patches, we have to justify it, i.e., to ask "why not do it some other way?" Or, "is this too specialized to merit an option?" Here's a little bash/zsh script that does it: chmod-parents() { local p=3D$2 while :; do chmod "$1" "$p" || break test "$p" =3D . && break p=3D$(dirname "$p") done } And an example showing how to use it: p=3Dd1/d2/d3 mkdir -p $p touch $p/file chmod-parents 505 $p/file From unknown Sat Jun 14 19:29:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8736: chmod -p --parents Resent-From: =?UTF-8?Q?J=C3=A9r=C3=A9my?= Compostella Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 23 Feb 2012 19:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8736 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Jim Meyering Cc: Erik Auerswald , 8736@debbugs.gnu.org, coreutils@gnu.org, francky.leyn@telenet.be Received: via spool by 8736-submit@debbugs.gnu.org id=B8736.133002408812246 (code B ref 8736); Thu, 23 Feb 2012 19:09:01 +0000 Received: (at 8736) by debbugs.gnu.org; 23 Feb 2012 19:08:08 +0000 Received: from localhost ([127.0.0.1]:52983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S0e1Q-0003BT-82 for submit@debbugs.gnu.org; Thu, 23 Feb 2012 14:08:08 -0500 Received: from mail-iy0-f172.google.com ([209.85.210.172]:61189) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S0e1M-0003Aw-K3 for 8736@debbugs.gnu.org; Thu, 23 Feb 2012 14:08:05 -0500 Received: by iagf6 with SMTP id f6so1996223iag.3 for <8736@debbugs.gnu.org>; Thu, 23 Feb 2012 11:05:29 -0800 (PST) Received-SPF: pass (google.com: domain of jeremy.compostella@gmail.com designates 10.50.89.232 as permitted sender) client-ip=10.50.89.232; Authentication-Results: mr.google.com; spf=pass (google.com: domain of jeremy.compostella@gmail.com designates 10.50.89.232 as permitted sender) smtp.mail=jeremy.compostella@gmail.com; dkim=pass header.i=jeremy.compostella@gmail.com Received: from mr.google.com ([10.50.89.232]) by 10.50.89.232 with SMTP id br8mr3994356igb.30.1330023929336 (num_hops = 1); Thu, 23 Feb 2012 11:05:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=JI657FvzGsDEhk0oeyIMIgYIvrvtNjzSqw2bi0gOeOU=; b=aulj3sWDPaUyaHvLioo6vXRuUkOUjg/GpDuKBbjnsErhASB870u/bAa6/RX446SOie xIANPr2B/omV6tt9RQ0o14WA9ouo5O8K7gySR6UXIpzmARITyP3lmu2uKMlUhllWZOQu prJOalrr0kJDWIgZh5AXHhK0fZM/gRq1z8fDg= Received: by 10.50.89.232 with SMTP id br8mr3319244igb.30.1330023929287; Thu, 23 Feb 2012 11:05:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.29.196 with HTTP; Thu, 23 Feb 2012 11:05:09 -0800 (PST) In-Reply-To: <8739a1u7yh.fsf@rho.meyering.net> References: <878vju3096.fsf@Apollo.jerryland.fr> <8739a1u7yh.fsf@rho.meyering.net> From: =?UTF-8?Q?J=C3=A9r=C3=A9my?= Compostella Date: Thu, 23 Feb 2012 20:05:09 +0100 Message-ID: Content-Type: multipart/alternative; boundary=e89a8f3ba429d915de04b9a65355 X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) --e89a8f3ba429d915de04b9a65355 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable OK, I understand. My answers to both questions: 1. why not do it some other way? First, it is very convenient to do it that way because it is very simple and it is more consistent with other commands that already provide it: $ mkdir -p a/b/c d/e $ chmod g+w -p a/b/c d/e IMHO, the way like the one you propose misses the consistency point. Don't misunderstand me, I don't want to force a new feature if someone has a pertinent argument to oppose to. But this one has already been proposed by other people and I really think it is worth to have it too. 2. Is this too specialized to merit an option? I don't think so. This option already exists for other commands like `mkdir' and `cp' to deserve the same purpose. Cheers, J=E9r=E9my --e89a8f3ba429d915de04b9a65355 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
OK, I understand. My answers to both questions:

1. why not do it some other way?

First, it is v= ery convenient to do it that way because it is very simple
and it= is more consistent with other commands that already provide it:

$ mkdir -p a/b/c d/e
$ chmod g+w -p a/b/c d/e=

IMHO, the way like the one you propose misses the= consistency point.

Don't misunderstand me, I = don't want to force a new feature if someone
has a pertinent argument to oppose to. But this one has already been
proposed by other people and I really think it is worth to have it= too.

2. Is this too specialized to merit an optio= n?

I don't think so. This option already exists for ot= her commands like
`mkdir' and `cp' to deserve the same pu= rpose.

Cheers,

J=E9r=E9my=

--e89a8f3ba429d915de04b9a65355-- From unknown Sat Jun 14 19:29:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8736: chmod -p --parents Resent-From: Jim Meyering Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 23 Feb 2012 19:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8736 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: =?UTF-8?Q?J=C3=A9r=C3=A9my?= Compostella Cc: Erik Auerswald , 8736@debbugs.gnu.org, coreutils@gnu.org, francky.leyn@telenet.be Received: via spool by 8736-submit@debbugs.gnu.org id=B8736.133002617515553 (code B ref 8736); Thu, 23 Feb 2012 19:43:02 +0000 Received: (at 8736) by debbugs.gnu.org; 23 Feb 2012 19:42:55 +0000 Received: from localhost ([127.0.0.1]:52991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S0eZ5-00042m-7g for submit@debbugs.gnu.org; Thu, 23 Feb 2012 14:42:55 -0500 Received: from mx.meyering.net ([88.168.87.75]:51913) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S0eZ2-00042d-7M for 8736@debbugs.gnu.org; Thu, 23 Feb 2012 14:42:53 -0500 Received: from rho.meyering.net (localhost.localdomain [127.0.0.1]) by rho.meyering.net (Acme Bit-Twister) with ESMTP id 5082460052; Thu, 23 Feb 2012 20:40:21 +0100 (CET) From: Jim Meyering In-Reply-To: ("=?UTF-8?Q?J=C3=A9r=C3=A9my?= Compostella"'s message of "Thu, 23 Feb 2012 20:05:09 +0100") References: <878vju3096.fsf@Apollo.jerryland.fr> <8739a1u7yh.fsf@rho.meyering.net> Date: Thu, 23 Feb 2012 20:40:21 +0100 Message-ID: <87ipixqqxm.fsf@rho.meyering.net> Lines: 34 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) J=E9r=E9my Compostella wrote: > OK, I understand. My answers to both questions: > > 1. why not do it some other way? > > First, it is very convenient to do it that way because it is very simple > and it is more consistent with other commands that already provide it: > > $ mkdir -p a/b/c d/e > $ chmod g+w -p a/b/c d/e > > IMHO, the way like the one you propose misses the consistency point. > > Don't misunderstand me, I don't want to force a new feature if someone > has a pertinent argument to oppose to. But this one has already been > proposed by other people and I really think it is worth to have it too. When a small bash/perl/python script can provide the same functionality, that means the proposed feature requires more justification. By your arguments, chown, chgrp and chcon should also support this new opti= on. Sorry, but "consistency" and "convenience" are not sufficient, here. It's just as convenient to use a small script on those rare occasions that one requires this behavior. Sorry to reject the idea, but if we were to accept new options too easily many of the coreutils programs would be larger and harder to maintain, for relatively little added value. Part of our job as maintainers is to ensure that each new feature really is well justified. > 2. Is this too specialized to merit an option? > > I don't think so. This option already exists for other commands like > `mkdir' and `cp' to deserve the same purpose. From unknown Sat Jun 14 19:29:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8736: chmod -p --parents References: <750769315.19883741306440785311.JavaMail.root@thulani.telenet-ops.be> Resent-From: francky.leyn@telenet.be Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 23 Feb 2012 19:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8736 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Jim Meyering Cc: Erik Auerswald , 8736@debbugs.gnu.org, Francky Leyn , =?UTF-8?Q?J=C3=A9r=C3=A9my?= Compostella , coreutils@gnu.org Received: via spool by 8736-submit@debbugs.gnu.org id=B8736.133002645416027 (code B ref 8736); Thu, 23 Feb 2012 19:48:01 +0000 Received: (at 8736) by debbugs.gnu.org; 23 Feb 2012 19:47:34 +0000 Received: from localhost ([127.0.0.1]:52996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S0edX-0004AP-TJ for submit@debbugs.gnu.org; Thu, 23 Feb 2012 14:47:34 -0500 Received: from juliette.telenet-ops.be ([195.130.137.74]:41326) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S0edU-0004AD-Bg for 8736@debbugs.gnu.org; Thu, 23 Feb 2012 14:47:29 -0500 Received: from zcsnocm15.telenet-ops.be ([213.224.144.79]) by juliette.telenet-ops.be with bizsmtp id dXkx1i0011j046l06Xkxlf; Thu, 23 Feb 2012 20:44:57 +0100 Date: Thu, 23 Feb 2012 20:44:56 +0100 (CET) From: francky.leyn@telenet.be Message-ID: <65b4578a-bbf1-4e6f-8723-470c432cc5e4@chioma.telenet-ops.be> In-Reply-To: <87ipixqqxm.fsf@rho.meyering.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Originating-IP: [213.224.144.4] X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Hello, I for sure hope the proposal gets through. Best regards, Francky ----- Oorspronkelijk e-mail ----- > J=C3=A9r=C3=A9my Compostella wrote: > > OK, I understand. My answers to both questions: > > > > 1. why not do it some other way? > > > > First, it is very convenient to do it that way because it is very > > simple > > and it is more consistent with other commands that already provide > > it: > > > > $ mkdir -p a/b/c d/e > > $ chmod g+w -p a/b/c d/e > > > > IMHO, the way like the one you propose misses the consistency > > point. > > > > Don't misunderstand me, I don't want to force a new feature if > > someone > > has a pertinent argument to oppose to. But this one has already > > been > > proposed by other people and I really think it is worth to have it > > too. >=20 > When a small bash/perl/python script can provide the same > functionality, > that means the proposed feature requires more justification. >=20 > By your arguments, chown, chgrp and chcon should also support this > new option. > Sorry, but "consistency" and "convenience" are not sufficient, here. > It's just as convenient to use a small script on those rare occasions > that one requires this behavior. >=20 > Sorry to reject the idea, but if we were to accept new options too > easily > many of the coreutils programs would be larger and harder to > maintain, > for relatively little added value. Part of our job as maintainers is > to ensure that each new feature really is well justified. >=20 > > 2. Is this too specialized to merit an option? > > > > I don't think so. This option already exists for other commands > > like > > `mkdir' and `cp' to deserve the same purpose. >=20 From unknown Sat Jun 14 19:29:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8736: chmod -p --parents Resent-From: Jim Meyering Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 23 Feb 2012 20:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8736 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: =?UTF-8?Q?J=C3=A9r=C3=A9my?= Compostella Cc: 8736@debbugs.gnu.org, coreutils@gnu.org, francky.leyn@telenet.be Received: via spool by 8736-submit@debbugs.gnu.org id=B8736.133002736017605 (code B ref 8736); Thu, 23 Feb 2012 20:03:01 +0000 Received: (at 8736) by debbugs.gnu.org; 23 Feb 2012 20:02:40 +0000 Received: from localhost ([127.0.0.1]:53020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S0esA-0004Zt-OQ for submit@debbugs.gnu.org; Thu, 23 Feb 2012 15:02:39 -0500 Received: from mx.meyering.net ([88.168.87.75]:51992) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S0es5-0004Zc-DW for 8736@debbugs.gnu.org; Thu, 23 Feb 2012 15:02:34 -0500 Received: from rho.meyering.net (localhost.localdomain [127.0.0.1]) by rho.meyering.net (Acme Bit-Twister) with ESMTP id EC05F60188; Thu, 23 Feb 2012 21:00:02 +0100 (CET) From: Jim Meyering In-Reply-To: <87ipixqqxm.fsf@rho.meyering.net> (Jim Meyering's message of "Thu, 23 Feb 2012 20:40:21 +0100") References: <878vju3096.fsf@Apollo.jerryland.fr> <8739a1u7yh.fsf@rho.meyering.net> <87ipixqqxm.fsf@rho.meyering.net> Date: Thu, 23 Feb 2012 21:00:02 +0100 Message-ID: <8739a1qq0t.fsf@rho.meyering.net> Lines: 10 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Jim Meyering wrote: ... > Sorry to reject the idea, but if we were to accept new options too easily > many of the coreutils programs would be larger and harder to maintain, > for relatively little added value. Part of our job as maintainers is > to ensure that each new feature really is well justified. Also, please ping the list before investing in even a small project like this. It's easier to discuss a proposal like this when there isn't an already-written patch hanging in the balance. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 11 18:34:30 2018 Received: (at control) by debbugs.gnu.org; 11 Oct 2018 22:34:30 +0000 Received: from localhost ([127.0.0.1]:45702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAjXK-0004zX-B8 for submit@debbugs.gnu.org; Thu, 11 Oct 2018 18:34:30 -0400 Received: from mail-pg1-f182.google.com ([209.85.215.182]:45621) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAjXI-0004zL-9d for control@debbugs.gnu.org; Thu, 11 Oct 2018 18:34:28 -0400 Received: by mail-pg1-f182.google.com with SMTP id t70-v6so4828541pgd.12 for ; Thu, 11 Oct 2018 15:34:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:message-id:date:user-agent:mime-version:content-language :content-transfer-encoding; bh=7apBCEYAVn0WRPO0lUXyhbI1fmL5j8ewFFZTMWbq3yI=; b=toL8k7fQ5KxcbpSCAnSstHi4BG3qCcxWJcN/bt/seLilla0Ue8MSoU9J1v5V6iO3fg Amtg9kpyXCz6IczP+2B5sJYJK3YfFfjxTAGmOxtTrod4ghSW0k15rGSpYxYDiFSlcAsB b+vq/HbVS9N7uvE1FMp1P3qbiMEIDsfLl6k4ET6Al2IcPeFzjjrZ9zwHGa2VJe/ExfXe 3jQYK+A79YMNLDdZUC61eJzXCsccw+t/vFb+7hJkDSgoB+YVi3OxSUwg8JCeiJ7OQyWV 5ZoV8ucVi7kf21B9kSPfhOsY9gPJXdQIdN2I3zwzq+DrwthawKhrBWKjm3NgJcH/itND ft5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=7apBCEYAVn0WRPO0lUXyhbI1fmL5j8ewFFZTMWbq3yI=; b=nuSXC9XJQrXagjzp9W7BnUZ1ommpMMtThBjiA0K4nSj9o4WjsFR3A+T1I38yKP0Fzo a80GuqT/kmd2gJ88NlNpMrUnhTux+WSOZT6sFbPjHet1qbxR/kyeBG+9D3hrvi5hSWA0 tPvm9ZgUek97jmNo/HTOyGsYT7L9WvOcTvbZmJCQO76Uela8KzNPYaRgVOQJVzz465na sR7y8GEOE2qoVSBsmVUSe1wlUlBo3OI4XiIlKUgqew8ofHkd3Hl+Mbbx5l67NR2KDA57 ZddvDznKsR+vGLbgzftMTy7UXhlrFIOgqUwKS/fIz34hApKzdH3ed7ALT7sbC92Nk5DQ euZw== X-Gm-Message-State: ABuFfoizOr8B6DzumAK7s/Z8zthjLcrY02/3IwhW8rDQY8Q2vWkcMPwY fJKVbts5ENDLCy3pJZy+ho5ZQXpS X-Google-Smtp-Source: ACcGV60Jjf/wOacofqXbjwl8/obHA6hjNflkUrX7x5s0ygRZTEYhAlGGdhz8FbeEIziWm+tOq6xQvQ== X-Received: by 2002:a62:8910:: with SMTP id v16-v6mr3401359pfd.106.1539297261732; Thu, 11 Oct 2018 15:34:21 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id o12-v6sm12147564pgv.7.2018.10.11.15.34.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Oct 2018 15:34:20 -0700 (PDT) To: control@debbugs.gnu.org From: Assaf Gordon Message-ID: <9feaab7a-6767-723b-785a-b9e39fa507c7@gmail.com> Date: Thu, 11 Oct 2018 16:34:19 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 12656 tags 8824 moreinfo close 8824 tags 8767 + moreinfo close 8767 [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.215.182 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (assafgordon[at]gmail.com) 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.215.182 listed in wl.mailspike.net] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) close 12656 tags 8824 moreinfo close 8824 tags 8767 + moreinfo close 8767 tags 8736 wontfix close 8736 tags 8700 wontfix close 8700 close 8616 tags 9101 fixed close 9101 retitle 9129 printf: RFE: reject field width larger than INT_MAX tags 9129 notabug close 9129 tags 9140 fixed close 9140 tags 9207 wontfix close 9207