X-Loop: help-debbugs@HIDDEN Subject: bug#34672: [RFC] id --numeric Resent-From: Giuseppe Scrivano <gscrivano@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-coreutils@HIDDEN Resent-Date: Tue, 26 Feb 2019 20:37:02 +0000 Resent-Message-ID: <handler.34672.B.155121338721170 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 34672 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 34672 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.155121338721170 (code B ref -1); Tue, 26 Feb 2019 20:37:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Feb 2019 20:36:27 +0000 Received: from localhost ([127.0.0.1]:53321 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gyjSk-0005VN-L9 for submit <at> debbugs.gnu.org; Tue, 26 Feb 2019 15:36:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gscrivano@HIDDEN>) id 1gyjSi-0005VA-KC for submit <at> debbugs.gnu.org; Tue, 26 Feb 2019 15:36:24 -0500 Received: from lists.gnu.org ([209.51.188.17]:36769) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <gscrivano@HIDDEN>) id 1gyjSd-0003dS-Cu for submit <at> debbugs.gnu.org; Tue, 26 Feb 2019 15:36:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <gscrivano@HIDDEN>) id 1gyjSc-0003yd-Ex for bug-coreutils@HIDDEN; Tue, 26 Feb 2019 15:36:19 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_40 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39275) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <gscrivano@HIDDEN>) id 1gyjSc-0003cn-9T for bug-coreutils@HIDDEN; Tue, 26 Feb 2019 15:36:18 -0500 Received: from 79.184.28.128.ipv4.supernova.orange.pl ([79.184.28.128]:52562 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from <gscrivano@HIDDEN>) id 1gyjSb-0000IP-WC for bug-coreutils@HIDDEN; Tue, 26 Feb 2019 15:36:18 -0500 From: Giuseppe Scrivano <gscrivano@HIDDEN> Date: Tue, 26 Feb 2019 21:36:12 +0100 Message-ID: <87k1hml22r.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hi, there are cases where I'd like to see only the numeric values in the `id` output. I could get this information separately, but having a new option and just one command simplifies the task. Are you fine with a change like the following? If you have nothing against it, I will clean it up and send it again. Thanks, Giuseppe diff --git a/src/id.c b/src/id.c index d710caaee..e16c9c625 100644 --- a/src/id.c +++ b/src/id.c @@ -59,6 +59,8 @@ static bool ok = true; static bool multiple_users = false; /* If true, output user/group name instead of ID number. -n */ static bool use_name = false; +/* If true, prints only numbers for the IDs. */ +static bool just_numeric = false; /* The real and effective IDs of the user to print. */ static uid_t ruid, euid; @@ -78,6 +80,7 @@ static struct option const longopts[] = {"group", no_argument, NULL, 'g'}, {"groups", no_argument, NULL, 'G'}, {"name", no_argument, NULL, 'n'}, + {"numeric", no_argument, NULL, 'N'}, {"real", no_argument, NULL, 'r'}, {"user", no_argument, NULL, 'u'}, {"zero", no_argument, NULL, 'z'}, @@ -105,6 +108,7 @@ or (when USER omitted) for the current user.\n\ -g, --group print only the effective group ID\n\ -G, --groups print all group IDs\n\ -n, --name print a name instead of a number, for -ugG\n\ + -N, --numeric print only numeric values for IDs\n\ -r, --real print the real ID instead of the effective ID, with -ugG\n\ -u, --user print only the effective user ID\n\ -z, --zero delimit entries with NUL characters, not whitespace;\n\ @@ -137,7 +141,7 @@ main (int argc, char **argv) atexit (close_stdout); - while ((optc = getopt_long (argc, argv, "agnruzGZ", longopts, NULL)) != -1) + while ((optc = getopt_long (argc, argv, "agnruzGZN", longopts, NULL)) != -1) { switch (optc) { @@ -178,6 +182,9 @@ main (int argc, char **argv) case 'G': just_group_list = true; break; + case 'N': + just_numeric = true; + break; case_GETOPT_HELP_CHAR; case_GETOPT_VERSION_CHAR (PROGRAM_NAME, AUTHORS); default: @@ -361,19 +368,19 @@ print_full_info (const char *username) printf (_("uid=%s"), uidtostr (ruid)); pwd = getpwuid (ruid); - if (pwd) + if (!just_numeric && pwd) printf ("(%s)", pwd->pw_name); printf (_(" gid=%s"), gidtostr (rgid)); grp = getgrgid (rgid); - if (grp) + if (!just_numeric && grp) printf ("(%s)", grp->gr_name); if (euid != ruid) { printf (_(" euid=%s"), uidtostr (euid)); pwd = getpwuid (euid); - if (pwd) + if (!just_numeric && pwd) printf ("(%s)", pwd->pw_name); } @@ -381,7 +388,7 @@ print_full_info (const char *username) { printf (_(" egid=%s"), gidtostr (egid)); grp = getgrgid (egid); - if (grp) + if (!just_numeric && grp) printf ("(%s)", grp->gr_name); } @@ -413,9 +420,12 @@ print_full_info (const char *username) if (i > 0) putchar (','); fputs (gidtostr (groups[i]), stdout); - grp = getgrgid (groups[i]); - if (grp) - printf ("(%s)", grp->gr_name); + if (! just_numeric) + { + grp = getgrgid (groups[i]); + if (grp) + printf ("(%s)", grp->gr_name); + } } free (groups); } Regards, Giuseppe
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Giuseppe Scrivano <gscrivano@HIDDEN> Subject: bug#34672: Acknowledgement ([RFC] id --numeric) Message-ID: <handler.34672.B.155121338721170.ack <at> debbugs.gnu.org> References: <87k1hml22r.fsf@HIDDEN> X-Gnu-PR-Message: ack 34672 X-Gnu-PR-Package: coreutils Reply-To: 34672 <at> debbugs.gnu.org Date: Tue, 26 Feb 2019 20:37:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-coreutils@HIDDEN If you wish to submit further information on this problem, please send it to 34672 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 34672: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D34672 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#34672: [RFC] id --numeric Resent-From: Bernhard Voelker <mail@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-coreutils@HIDDEN Resent-Date: Thu, 28 Feb 2019 07:24:01 +0000 Resent-Message-ID: <handler.34672.B34672.155133858928651 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 34672 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Giuseppe Scrivano <gscrivano@HIDDEN>, 34672 <at> debbugs.gnu.org Received: via spool by 34672-submit <at> debbugs.gnu.org id=B34672.155133858928651 (code B ref 34672); Thu, 28 Feb 2019 07:24:01 +0000 Received: (at 34672) by debbugs.gnu.org; 28 Feb 2019 07:23:09 +0000 Received: from localhost ([127.0.0.1]:54744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gzG29-0007S3-3m for submit <at> debbugs.gnu.org; Thu, 28 Feb 2019 02:23:09 -0500 Received: from mout.kundenserver.de ([217.72.192.74]:38737) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <mail@HIDDEN>) id 1gzG26-0007RM-OM for 34672 <at> debbugs.gnu.org; Thu, 28 Feb 2019 02:23:07 -0500 Received: from [192.168.101.10] ([93.218.109.128]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1ML9ds-1ghBBJ3sZ8-00IGIZ; Thu, 28 Feb 2019 08:23:00 +0100 References: <87k1hml22r.fsf@HIDDEN> From: Bernhard Voelker <mail@HIDDEN> Openpgp: preference=signencrypt Autocrypt: addr=mail@HIDDEN; prefer-encrypt=mutual; keydata= mQENBFPirzMBCACyzYldTjQ4ufFOkByY5Nn5USb5GFoL48nWBwNHjd9KUbtRRNlQiPNKd6hK Gvd3BGi5aoFKA4ytfRk6jbAbW3jVb3R8wYaV08mOy4KVEKxqN4bxsXlMjNChXVR+rtKDmfI+ oPTL+cPH2X6gW4W02IRbVw0uUhNm6zEedC/gNrY/mTlf1enZ46jxZ7BTUZaG+kx38UMISIMB zSzLRtdkwgmHj4jS3p1fF2cwRqLclIfMjKGpbNFPEXeXKWrCLcqHw78795eAR9q0YvrDkfIn GdDBwfb3VM4NdulwIFzvYZMSXvSbbyPLB5YkHU5aAWQHUse4WlfT5ccDpbzUYldRAvF9ABEB AAG0K0Jlcm5oYXJkIFZvZWxrZXIgPG1haWxAYmVybmhhcmQtdm9lbGtlci5kZT6JATkEEwEC ACMFAlPirzMCGwMHCwkIBwMCAQYVCAIJCgsEFgIDAQIeAQIXgAAKCRBGUC73lpFxle5wCACC dbs0QaJ0vR3Sff2cKdTk41rUq3YfWngsR///IOU0C5DdkePmCnJE/lUsUy0LRTxcUDLxQR+x QHU8ssRT0JUO9726dI3miy36UdsgmBYaOtLvQcidGmW1R7o0PYYf04+TFtyqKgngOUBPpMgR 6o4UsQxy/OD4bN1WDqOgIjL+D/qJpkKmgp6L6+hhaBCpiOFKRmmV7YyQ3SqVlfQNiHs5ZtkR nXpIjgZARV+GllKucI17bO0CGmTJZ1tstVy0+W3DQT1lbBkTTc++5LONM99D3jjn23l1ocOp folR53F7I4cb2RNfT23v1I59RH37lB9wMOqrKj0UjYAC2YoPGQ3BuQENBFPirzMBCADXLWWp QihBldY6reca8ZKdc3T9qXEOa3akE3DWKztIBmNJhtYOjmpLYajQTkGa7UoJTnbmZE2Rn6ZE oNnvb0gcFNAIcY95KOI+bjOR8HEgh4cx2REXh6L6olIgyXqt/KFusE4wtVZAFxZl+30HzN6n D+1HvrjXxPJRX6MsIYOYyyX9/6OofwJK6QHODYGp8WL2olHDnmsXg4AT6Wlr7qKpKrQELlcF R4xkvdmgL/Ghw/tK0yJTxMIcewCCZWLPOXRmFRbvAadZWPAgVsJ63siNyUlVnVMSzDgTJl+s l/DMabXpqrJQx3/1Yy6mTaDs3XZT/wmBKaTLXx/LByaPxQQ7ABEBAAGJAR8EGAECAAkFAlPi rzMCGwwACgkQRlAu95aRcZWVPwgAqZT6iTXkoP37wYb41323RzhBcJ8JSk4cyBDBUXX0lMrM 3qhiClKG7phpxVdu817Gwc6Hsecg7FfjQAV8MHQ0ZFeEFdk3b2rKBqfsStc+h49/xF3Fb+if CzR9qeQF82fMSxkg18++7hMcHCMO/hPZ/Q0xRi+lrSr2QKDJQuLzSyVU14TxrCkevZjEhtma VNvcJlJzCbiBXee9Fpc5jITUXPFG8E8dxqo1n+duOyIMgozrAnzP7X5V/Ob/Ozf/aGGX9+Jd inyfCX18nWcHALKMU/36Eua/ylalf/2c2YkBp9KCLVmGgPkUgW52EeRPgroIsiwu+rwCSV6Z UyCJ+OymCg== Message-ID: <7f067fd8-21c3-1ea6-bc5d-2586808c9221@HIDDEN> Date: Thu, 28 Feb 2019 08:22:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <87k1hml22r.fsf@HIDDEN> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:cmhak24Ut2+CY1BHVt4i/xH1Ha59MGZqmINMcirdr2mui6sh8lc 1ggpulp9wMNvPJpeA7kN3/pGBqZfdnXuGFWV9rEDdP9BWboNikSFnaownb3eaEQSOBVysnI J8Ftc2bgPDON1xwG//BGcMguvOIH/LpDhj3rqtaNDTmMeN2mrGMc9+PXW3BzokT700m6Sh2 ITsRrHjhBYZ2ySG+dAy2Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:4+ChRguFDTM=:tp+A1qXXR2tq3rDVASoFNJ SXFEopsvZo9Nc7K9nSfKjKAZCzlcUOymd05l7odLltFYdlPV5E/js8Q+cq8BtPNIZf6lMmtJj PmabvfPeQcD7P8feeo166OB+q8obk7Gi/0xjlh5nrf0hVzsuejkzp96G7N+RakCaTehZCAAkq XEVyIcFpfrAOLEaJOPpEsNGW+/SBsAPmPlVbZDu8jQS4N7sVlVSU60PBJWliC4V6QuYkqXulZ CRpVR+MD8i/ebZpbIrK7VT9MkBPE2daqiN4+qZeuoSNsbR+Iq10Fu19BY2fm4SJVvCQ7CbR1P CV1AKkv442jkxZm2MIUw2AX+nWPzL7MdrVJOl/F8SzqmZyIEAwPRjN6vxICKUoUd2GfiuFSDQ SNa9L7aOWLfb8C/KybKMoEe5qBBEjM1oCvDBCVcWsY+rV/NZE1OsXziSZBHVAw0qngXAOYPGS lDF6aWBOTwYAe8cY5y5nWy2v4itBxg4bbhitqOFlJSIWdYfTNW9i68c72PEKAax40H9VOBQx/ z51JjvhfEyC+tSITJmmG1CQNV4RSqJIuMyfOOuX3P1SpTbAempJ78ZTzRlkp681bRf+dnxEf6 sAfyu64a7uZ302hnVUg4VcHU3ircyjR657wbJnnw08c4yMcDQHz+cBF8dpCPa8g0gZBYiRTgK PLRWFwKAtgpeSxAQLlb+wY7gLUY3Ibb7itJS10COqL+6Igm4EenhXHKmyIlCvut5m/l8LRWHM +Ag8W8GHQqm8YUDcpwxCAYcl4MzjHgq2UPlD/bCAs2M1sQdipjRbVvi+8LyVS/Me1XXnunsrY TGRC/MW X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) severity 34672 wishlist tags 34672 notabug stop On 2/26/19 9:36 PM, Giuseppe Scrivano wrote: > Hi, > > there are cases where I'd like to see only the numeric values in the > `id` output. > > I could get this information separately, but having a new option > and just one command simplifies the task. > > Are you fine with a change like the following? > > If you have nothing against it, I will clean it up and send it again. > > Thanks, > Giuseppe Thanks for the patch. What is the use case? I mean, if one wants only the numeric numbers, then this is usually in a script for automatic processing, and then I thinks it's clearer to have uid and group/groups separated: $ id -u 1000 $ id -g 100 $ id -G 100 454 457 480 492 There's even a -z option to separate by NULs instead of white space. And, when still needing all in the same output, one could filter like e.g.: $ id | sed 's/([^)]*)//g' uid=1000 gid=100 groups=100,454,457,480,492 So I'm currently 40:60 to add it. Thanks & have a nice day, Berny
X-Loop: help-debbugs@HIDDEN Subject: bug#34672: [RFC] id --numeric Resent-From: Giuseppe Scrivano <gscrivano@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-coreutils@HIDDEN Resent-Date: Thu, 28 Feb 2019 10:01:01 +0000 Resent-Message-ID: <handler.34672.B34672.155134801511138 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 34672 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Bernhard Voelker <mail@HIDDEN> Cc: 34672 <at> debbugs.gnu.org, Giuseppe Scrivano <gscrivano@HIDDEN> Received: via spool by 34672-submit <at> debbugs.gnu.org id=B34672.155134801511138 (code B ref 34672); Thu, 28 Feb 2019 10:01:01 +0000 Received: (at 34672) by debbugs.gnu.org; 28 Feb 2019 10:00:15 +0000 Received: from localhost ([127.0.0.1]:54792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gzIUA-0002tY-LX for submit <at> debbugs.gnu.org; Thu, 28 Feb 2019 05:00:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36263) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gscrivano@HIDDEN>) id 1gzIU8-0002tJ-QF for 34672 <at> debbugs.gnu.org; Thu, 28 Feb 2019 05:00:13 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36564) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <gscrivano@HIDDEN>) id 1gzIU3-0005Uh-78; Thu, 28 Feb 2019 05:00:07 -0500 Received: from 79.184.215.192.ipv4.supernova.orange.pl ([79.184.215.192]:33054 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from <gscrivano@HIDDEN>) id 1gzIU2-0002Z7-NW; Thu, 28 Feb 2019 05:00:07 -0500 From: Giuseppe Scrivano <gscrivano@HIDDEN> References: <87k1hml22r.fsf@HIDDEN> <7f067fd8-21c3-1ea6-bc5d-2586808c9221@HIDDEN> Date: Thu, 28 Feb 2019 11:00:03 +0100 In-Reply-To: <7f067fd8-21c3-1ea6-bc5d-2586808c9221@HIDDEN> (Bernhard Voelker's message of "Thu, 28 Feb 2019 08:22:58 +0100") Message-ID: <87zhqgjkrg.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hi Bernhard, Bernhard Voelker <mail@HIDDEN> writes: > Thanks for the patch. > > What is the use case? I mean, if one wants only the numeric numbers, > then this is usually in a script for automatic processing, and then > I thinks it's clearer to have uid and group/groups separated: > > $ id -u > 1000 > > $ id -g > 100 > > $ id -G > 100 454 457 480 492 > > There's even a -z option to separate by NULs instead of white space. > > And, when still needing all in the same output, one could filter like e.g.: > > $ id | sed 's/([^)]*)//g' > uid=1000 gid=100 groups=100,454,457,480,492 > > So I'm currently 40:60 to add it. as I said, it doesn't really add anything. It is just an aesthetic shortcut that I find useful when using Linux user namespaces. In that use case the uid->username lookup doesn't make much sense. Regards, Giuseppe
Received: (at control) by debbugs.gnu.org; 28 Mar 2019 18:35:19 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 28 14:35:19 2019 Received: from localhost ([127.0.0.1]:34727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1h9Zry-0001NU-Vg for submit <at> debbugs.gnu.org; Thu, 28 Mar 2019 14:35:19 -0400 Received: from mail-pg1-f177.google.com ([209.85.215.177]:47049) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <assafgordon@HIDDEN>) id 1h9Zrx-0001NF-4S for control <at> debbugs.gnu.org; Thu, 28 Mar 2019 14:35:17 -0400 Received: by mail-pg1-f177.google.com with SMTP id q1so3837702pgv.13 for <control <at> debbugs.gnu.org>; Thu, 28 Mar 2019 11:35:17 -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=14sJ5RmHsJefDZny9jb7hiF0WsDeuUai+VfCNlZH2ws=; b=mo2AOlRB51kB7YHJ4OIuzUzUXXVhXSaGxpOVQZALNxO8733CJju0U5Eta6j/cOURQG 0n2xIu9p2u2j3qYqlwWRwvIpX5MDXqlDCCK3mp0zl3MtkHOWDzjtesI6Rq+9jufJWL0P YLH53dBTYLhOeru7hGA45KfDVCPo3XYT0V1ftaTEa06LW4/Luwgp089pdf3UXJP1CACR WUb70XF4bkoFNTZzkhffN+Is6DdxUBl3ssYIbZquoa4Q+WvyiwPmrEvn9SoerZknfE7I hiyvPmUbTOXrr0XdxLbks5pNViIetPYNChg14BfVA3fgDdioKnUDM9+tEkkJdptuL/qc Ni5g== 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=14sJ5RmHsJefDZny9jb7hiF0WsDeuUai+VfCNlZH2ws=; b=tf/Q3317Yr3Y54GJEu6YO/gkZnndC33uAZ6JLLsaqIHRZ8vseuoUZbQmrih9ugUZty j13Z5yAUOpCAP27Dm6oL3HkJ9aj0DO9PS12LdqqsrYOmD4r1UyO6h40KzfwkYBM1wo8L 27FE+DFdGHm3T2oaEIm4hBf/pH/UMZb6FVfqH5Lva+3H/RU48yf9xHsLSyXDEjHzEBnz lOxpy0UqeEsEek9Jqx1lJIfDg78QpMnzOr+wroxkuLxJyK/4vVpX61RTQDUu5gdplYUA hQ6QH5hUOpviY25Mne3KB54rydAkabhc1G6kGBIMgbae6Bq9sf/ZwCERasQLDChI7BH8 2ajQ== X-Gm-Message-State: APjAAAUSsHxbpsooIhji+ZEoQ8uHfHLZ4CqsYNglJdlI6jAU3d5xJ0uE BERRKDUCXg9f57qcm1gV4H0+AAKc+iA= X-Google-Smtp-Source: APXvYqwryJXHynz6aTSisha/iDhdRyp4dh9UvwMkfd8jojO7ceVAk5A5QuFs+vZoKlydAgwaPG8y/Q== X-Received: by 2002:a63:3d49:: with SMTP id k70mr24592119pga.447.1553798111193; Thu, 28 Mar 2019 11:35:11 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id h65sm53358164pfd.108.2019.03.28.11.35.10 for <control <at> debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Mar 2019 11:35:10 -0700 (PDT) To: control <at> debbugs.gnu.org From: Assaf Gordon <assafgordon@HIDDEN> Message-ID: <d6f50f30-85ce-5976-97c0-408663260fbd@HIDDEN> Date: Thu, 28 Mar 2019 12:35:09 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.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: severity 34672 wishlist tags 34672 notabug retitle 34672 id: add "--numeric" option stop Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -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_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.215.177 listed in list.dnswl.org] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.0 (+) severity 34672 wishlist tags 34672 notabug retitle 34672 id: add "--numeric" option stop
Received: (at control) by debbugs.gnu.org; 28 Mar 2019 18:35:19 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 28 14:35:19 2019 Received: from localhost ([127.0.0.1]:34727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1h9Zry-0001NU-Vg for submit <at> debbugs.gnu.org; Thu, 28 Mar 2019 14:35:19 -0400 Received: from mail-pg1-f177.google.com ([209.85.215.177]:47049) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <assafgordon@HIDDEN>) id 1h9Zrx-0001NF-4S for control <at> debbugs.gnu.org; Thu, 28 Mar 2019 14:35:17 -0400 Received: by mail-pg1-f177.google.com with SMTP id q1so3837702pgv.13 for <control <at> debbugs.gnu.org>; Thu, 28 Mar 2019 11:35:17 -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=14sJ5RmHsJefDZny9jb7hiF0WsDeuUai+VfCNlZH2ws=; b=mo2AOlRB51kB7YHJ4OIuzUzUXXVhXSaGxpOVQZALNxO8733CJju0U5Eta6j/cOURQG 0n2xIu9p2u2j3qYqlwWRwvIpX5MDXqlDCCK3mp0zl3MtkHOWDzjtesI6Rq+9jufJWL0P YLH53dBTYLhOeru7hGA45KfDVCPo3XYT0V1ftaTEa06LW4/Luwgp089pdf3UXJP1CACR WUb70XF4bkoFNTZzkhffN+Is6DdxUBl3ssYIbZquoa4Q+WvyiwPmrEvn9SoerZknfE7I hiyvPmUbTOXrr0XdxLbks5pNViIetPYNChg14BfVA3fgDdioKnUDM9+tEkkJdptuL/qc Ni5g== 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=14sJ5RmHsJefDZny9jb7hiF0WsDeuUai+VfCNlZH2ws=; b=tf/Q3317Yr3Y54GJEu6YO/gkZnndC33uAZ6JLLsaqIHRZ8vseuoUZbQmrih9ugUZty j13Z5yAUOpCAP27Dm6oL3HkJ9aj0DO9PS12LdqqsrYOmD4r1UyO6h40KzfwkYBM1wo8L 27FE+DFdGHm3T2oaEIm4hBf/pH/UMZb6FVfqH5Lva+3H/RU48yf9xHsLSyXDEjHzEBnz lOxpy0UqeEsEek9Jqx1lJIfDg78QpMnzOr+wroxkuLxJyK/4vVpX61RTQDUu5gdplYUA hQ6QH5hUOpviY25Mne3KB54rydAkabhc1G6kGBIMgbae6Bq9sf/ZwCERasQLDChI7BH8 2ajQ== X-Gm-Message-State: APjAAAUSsHxbpsooIhji+ZEoQ8uHfHLZ4CqsYNglJdlI6jAU3d5xJ0uE BERRKDUCXg9f57qcm1gV4H0+AAKc+iA= X-Google-Smtp-Source: APXvYqwryJXHynz6aTSisha/iDhdRyp4dh9UvwMkfd8jojO7ceVAk5A5QuFs+vZoKlydAgwaPG8y/Q== X-Received: by 2002:a63:3d49:: with SMTP id k70mr24592119pga.447.1553798111193; Thu, 28 Mar 2019 11:35:11 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id h65sm53358164pfd.108.2019.03.28.11.35.10 for <control <at> debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Mar 2019 11:35:10 -0700 (PDT) To: control <at> debbugs.gnu.org From: Assaf Gordon <assafgordon@HIDDEN> Message-ID: <d6f50f30-85ce-5976-97c0-408663260fbd@HIDDEN> Date: Thu, 28 Mar 2019 12:35:09 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.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: severity 34672 wishlist tags 34672 notabug retitle 34672 id: add "--numeric" option stop Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -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_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.215.177 listed in list.dnswl.org] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.0 (+) severity 34672 wishlist tags 34672 notabug retitle 34672 id: add "--numeric" option stop
Received: (at control) by debbugs.gnu.org; 28 Mar 2019 18:35:19 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 28 14:35:19 2019 Received: from localhost ([127.0.0.1]:34727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1h9Zry-0001NU-Vg for submit <at> debbugs.gnu.org; Thu, 28 Mar 2019 14:35:19 -0400 Received: from mail-pg1-f177.google.com ([209.85.215.177]:47049) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <assafgordon@HIDDEN>) id 1h9Zrx-0001NF-4S for control <at> debbugs.gnu.org; Thu, 28 Mar 2019 14:35:17 -0400 Received: by mail-pg1-f177.google.com with SMTP id q1so3837702pgv.13 for <control <at> debbugs.gnu.org>; Thu, 28 Mar 2019 11:35:17 -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=14sJ5RmHsJefDZny9jb7hiF0WsDeuUai+VfCNlZH2ws=; b=mo2AOlRB51kB7YHJ4OIuzUzUXXVhXSaGxpOVQZALNxO8733CJju0U5Eta6j/cOURQG 0n2xIu9p2u2j3qYqlwWRwvIpX5MDXqlDCCK3mp0zl3MtkHOWDzjtesI6Rq+9jufJWL0P YLH53dBTYLhOeru7hGA45KfDVCPo3XYT0V1ftaTEa06LW4/Luwgp089pdf3UXJP1CACR WUb70XF4bkoFNTZzkhffN+Is6DdxUBl3ssYIbZquoa4Q+WvyiwPmrEvn9SoerZknfE7I hiyvPmUbTOXrr0XdxLbks5pNViIetPYNChg14BfVA3fgDdioKnUDM9+tEkkJdptuL/qc Ni5g== 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=14sJ5RmHsJefDZny9jb7hiF0WsDeuUai+VfCNlZH2ws=; b=tf/Q3317Yr3Y54GJEu6YO/gkZnndC33uAZ6JLLsaqIHRZ8vseuoUZbQmrih9ugUZty j13Z5yAUOpCAP27Dm6oL3HkJ9aj0DO9PS12LdqqsrYOmD4r1UyO6h40KzfwkYBM1wo8L 27FE+DFdGHm3T2oaEIm4hBf/pH/UMZb6FVfqH5Lva+3H/RU48yf9xHsLSyXDEjHzEBnz lOxpy0UqeEsEek9Jqx1lJIfDg78QpMnzOr+wroxkuLxJyK/4vVpX61RTQDUu5gdplYUA hQ6QH5hUOpviY25Mne3KB54rydAkabhc1G6kGBIMgbae6Bq9sf/ZwCERasQLDChI7BH8 2ajQ== X-Gm-Message-State: APjAAAUSsHxbpsooIhji+ZEoQ8uHfHLZ4CqsYNglJdlI6jAU3d5xJ0uE BERRKDUCXg9f57qcm1gV4H0+AAKc+iA= X-Google-Smtp-Source: APXvYqwryJXHynz6aTSisha/iDhdRyp4dh9UvwMkfd8jojO7ceVAk5A5QuFs+vZoKlydAgwaPG8y/Q== X-Received: by 2002:a63:3d49:: with SMTP id k70mr24592119pga.447.1553798111193; Thu, 28 Mar 2019 11:35:11 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id h65sm53358164pfd.108.2019.03.28.11.35.10 for <control <at> debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Mar 2019 11:35:10 -0700 (PDT) To: control <at> debbugs.gnu.org From: Assaf Gordon <assafgordon@HIDDEN> Message-ID: <d6f50f30-85ce-5976-97c0-408663260fbd@HIDDEN> Date: Thu, 28 Mar 2019 12:35:09 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.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: severity 34672 wishlist tags 34672 notabug retitle 34672 id: add "--numeric" option stop Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -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_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.215.177 listed in list.dnswl.org] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 1.0 (+) severity 34672 wishlist tags 34672 notabug retitle 34672 id: add "--numeric" option stop
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.