GNU logs - #12964, boring messages


Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#12964: [PATCH] printenv: -n option added -- show names of variables.
Resent-From: Van de Bugger <van.de.bugger@HIDDEN>
Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Fri, 23 Nov 2012 00:31:02 +0000
Resent-Message-ID: <handler.12964.B.13536306364894 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 12964
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: patch
To: 12964 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-coreutils@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.13536306364894
          (code B ref -1); Fri, 23 Nov 2012 00:31:02 +0000
Received: (at submit) by debbugs.gnu.org; 23 Nov 2012 00:30:36 +0000
Received: from localhost ([127.0.0.1]:33673 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TbhAC-0001Gr-5T
	for submit <at> debbugs.gnu.org; Thu, 22 Nov 2012 19:30:36 -0500
Received: from eggs.gnu.org ([208.118.235.92]:40755)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <van.de.bugger@HIDDEN>) id 1TbfUu-0007Mj-Lq
	for submit <at> debbugs.gnu.org; Thu, 22 Nov 2012 17:43:53 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <van.de.bugger@HIDDEN>) id 1TbfTZ-00036F-51
	for submit <at> debbugs.gnu.org; Thu, 22 Nov 2012 17:42:29 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:37144)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <van.de.bugger@HIDDEN>) id 1TbfTZ-00036B-1O
	for submit <at> debbugs.gnu.org; Thu, 22 Nov 2012 17:42:29 -0500
Received: from eggs.gnu.org ([208.118.235.92]:35419)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <van.de.bugger@HIDDEN>) id 1TbfTY-0003Mn-2x
	for bug-coreutils@HIDDEN; Thu, 22 Nov 2012 17:42:28 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <van.de.bugger@HIDDEN>) id 1TbfTX-00035x-03
	for bug-coreutils@HIDDEN; Thu, 22 Nov 2012 17:42:28 -0500
Received: from mail-la0-f41.google.com ([209.85.215.41]:39404)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <van.de.bugger@HIDDEN>) id 1TbfTW-00035s-OP
	for bug-coreutils@HIDDEN; Thu, 22 Nov 2012 17:42:26 -0500
Received: by mail-la0-f41.google.com with SMTP id m15so5368469lah.0
	for <bug-coreutils@HIDDEN>; Thu, 22 Nov 2012 14:42:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=message-id:subject:from:to:date:content-type:x-mailer:mime-version
	:content-transfer-encoding;
	bh=ZCev6va3Nh+BGd0JXqINaQyPaJXdc7IMWA568PgZ2jM=;
	b=cHZMg6dPfACTMXTc7YyVwOOVfvsCAl3pPs9pJp8CfE/cyMHPWVqa1rrOIYBNRH0jxR
	BOOtBschTXLf/zlEnIzMHzSuLb5EoAD22MCF45wk7w06KupHglwrB2Rpn+YsLK6uYd+T
	svmOzMHqLAVplYrm8rBJc70/8mBTK5ujZ52NKli8CSgg4KHpOgdm2N8M19xP9NF/DMZ+
	gMAS1SnQBlq/QlOhQEV/e33zdExs8nEqwj/6qR2Rc1abzHe7BDe9dYOvCmI+6IZfX9a7
	1ytsRHkjUMpHEv3a3E+zw69ZiwRzogbF9XJKPWVKmYdmqNSP4qI70Avp7ckKDz5JVJVs
	xRFQ==
Received: by 10.112.83.229 with SMTP id t5mr1101078lby.89.1353624145460;
	Thu, 22 Nov 2012 14:42:25 -0800 (PST)
Received: from [95.79.235.150] ([95.79.235.150])
	by mx.google.com with ESMTPS id j10sm1917832lbh.17.2012.11.22.14.42.23
	(version=SSLv3 cipher=OTHER); Thu, 22 Nov 2012 14:42:24 -0800 (PST)
Message-ID: <1353624141.3382.3.camel@HIDDEN>
From: Van de Bugger <van.de.bugger@HIDDEN>
Date: Fri, 23 Nov 2012 02:42:21 +0400
Content-Type: text/plain; charset="UTF-8"
X-Mailer: Evolution 3.4.4 (3.4.4-2.fc17) 
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -3.4 (---)
X-Mailman-Approved-At: Thu, 22 Nov 2012 19:30:34 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://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: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.2 (----)

From 50aefa315b50b151a2192168fa46e9a311c06147 Mon Sep 17 00:00:00 2001
From: Van de Bugger <van.de.bugger@HIDDEN>
Date: Fri, 23 Nov 2012 02:38:48 +0400
Subject: [PATCH] printenv: -n option added -- show names of variables.

* src/printenv.c: -n option added -- show names of variables.
---
 src/printenv.c | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/src/printenv.c b/src/printenv.c
index 5c01f8d..b4583bd 100644
--- a/src/printenv.c
+++ b/src/printenv.c
@@ -49,6 +49,7 @@ static struct option const longopts[] =
   {"null", no_argument, NULL, '0'},
   {GETOPT_HELP_OPTION_DECL},
   {GETOPT_VERSION_OPTION_DECL},
+  {"names", no_argument, NULL, 'n'},
   {NULL, 0, NULL, 0}
 };
 
@@ -69,6 +70,9 @@ If no VARIABLE is specified, print name and value
pairs for them all.\n\
       fputs (_("\
   -0, --null     end each output line with 0 byte rather than newline\n
\
 "), stdout);
+      fputs (_("\
+  -n, --names    print also names of the specified environment
VARIABLE(s)\n\
+"), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
       printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME);
@@ -81,11 +85,12 @@ int
 main (int argc, char **argv)
 {
   char **env;
-  char *ep, *ap;
+  char *ep, *ap, *bp;
   int i;
   bool ok;
   int optc;
   bool opt_nul_terminate_output = false;
+  bool opt_show_names = false;
 
   initialize_main (&argc, &argv);
   set_program_name (argv[0]);
@@ -96,13 +101,16 @@ main (int argc, char **argv)
   initialize_exit_failure (PRINTENV_FAILURE);
   atexit (close_stdout);
 
-  while ((optc = getopt_long (argc, argv, "+iu:0", longopts, NULL)) !=
-1)
+  while ((optc = getopt_long (argc, argv, "+iu:0n", longopts, NULL)) !=
-1)
     {
       switch (optc)
         {
         case '0':
           opt_nul_terminate_output = true;
           break;
+        case 'n':
+          opt_show_names = true;
+          break;
         case_GETOPT_HELP_CHAR;
         case_GETOPT_VERSION_CHAR (PROGRAM_NAME, AUTHORS);
         default:
@@ -130,13 +138,14 @@ main (int argc, char **argv)
 
           for (env = environ; *env; ++env)
             {
-              ep = *env;
+              bp = ep = *env;
               ap = argv[i];
               while (*ep != '\0' && *ap != '\0' && *ep++ == *ap++)
                 {
                   if (*ep == '=' && *ap == '\0')
                     {
-                      printf ("%s%c", ep + 1,
+                      printf ("%s%c",
+                              opt_show_names ? bp : ep + 1,
                               opt_nul_terminate_output ? '\0' : '\n');
                       matched = true;
                       break;
-- 
1.7.11.7







Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.428 (Entity 5.428)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Van de Bugger <van.de.bugger@HIDDEN>
Subject: bug#12964: Acknowledgement ([PATCH] printenv: -n option added --
 show names of variables.)
Message-ID: <handler.12964.B.13536306364894.ack <at> debbugs.gnu.org>
References: <1353624141.3382.3.camel@HIDDEN>
X-Gnu-PR-Message: ack 12964
X-Gnu-PR-Package: coreutils
X-Gnu-PR-Keywords: patch
Reply-To: 12964 <at> debbugs.gnu.org
Date: Fri, 23 Nov 2012 00:31: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 12964 <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
12964: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D12964
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#12964: [PATCH] printenv: -n option added -- show names of variables.
Resent-From: Assaf Gordon <assafgordon@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Tue, 09 Oct 2018 21:34:01 +0000
Resent-Message-ID: <handler.12964.B12964.153912082221801 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 12964
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: patch
To: Van de Bugger <van.de.bugger@HIDDEN>, 12964 <at> debbugs.gnu.org
Received: via spool by 12964-submit <at> debbugs.gnu.org id=B12964.153912082221801
          (code B ref 12964); Tue, 09 Oct 2018 21:34:01 +0000
Received: (at 12964) by debbugs.gnu.org; 9 Oct 2018 21:33:42 +0000
Received: from localhost ([127.0.0.1]:42660 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1g9zdO-0005fZ-Il
	for submit <at> debbugs.gnu.org; Tue, 09 Oct 2018 17:33:42 -0400
Received: from mail-io1-f66.google.com ([209.85.166.66]:45512)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <assafgordon@HIDDEN>) id 1g9zdN-0005fI-Fj
 for 12964 <at> debbugs.gnu.org; Tue, 09 Oct 2018 17:33:41 -0400
Received: by mail-io1-f66.google.com with SMTP id e12-v6so2334331iok.12
 for <12964 <at> debbugs.gnu.org>; Tue, 09 Oct 2018 14:33:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:references:from:message-id:date:user-agent:mime-version
 :in-reply-to:content-language:content-transfer-encoding;
 bh=drCZOHzTchjTQb55pKymUe0qVlAy3/5kczV1PQd0IiI=;
 b=ieF6UkWv+CIDJpQAxZf5aCTpzo7gSMWVZAUEspv3XIYWy21BjQ08yTI/4L4TmMdiKF
 E3gCm6vwA0sLdLetMuCD+BossVpuHLldaCZ3rbOPb4Y/PrQMtBMOXFL21rjNWY2G1END
 ncNJ/tvBggiNZqzC9AuUP126DXxsJGjjpwI7jnVXg5U/lEazPD9/jW4Jm8vL4t3w37ZC
 JzaR59BGmBQnCwXLEjZXr8sjVR/t9kTHQ2pX3o8eF4MMH8m3R/Ud8O3ttrYayMCaZf1L
 EJeUEdeGVtuQNs3/UM9oopvhX1BeA8Jy7+nGgfmd7IUToACdYzIUHi0kAG6Zlu52Sqna
 v49g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=drCZOHzTchjTQb55pKymUe0qVlAy3/5kczV1PQd0IiI=;
 b=eQX457cLZ4dfiFTJN1i5EHAVEDA4Hj6yuFVUdFrGZ1TB6oAZToJpPcP1ax5zFqurE3
 zogOS1LzAhZ99alIiAK8vdOwc4HRv15ma96uYQM3XCbjDJJVMTV9WTjUKAE2dg8a5srp
 fFtPYReU2bMdEuRveaC0PP0WgH9QWrJSe3MosntvAjt4hxyV8aHmkbE8bTsz3n7wN4/l
 /yuDs2K1NxoFZ9tjCAEr5S0h7cxwngoYF/QfoedOIuvFqciJU5NF2CbQHGrRwFuTFPaR
 yUJpxA1Yik/xGbi9v3QO/R+fjqVR6k/uWCRELQJ9xaXu5vire63jBoW4+hhHgk2NQ30v
 FL7Q==
X-Gm-Message-State: ABuFfoguKaXR1ozJuGVs+erqOy8LYJUrTW7w9wtNJ6eAXAQTWR3BqU2J
 KLxGXBsZX80OFbmradWVGgedBsjcbAE=
X-Google-Smtp-Source: ACcGV61NGyfJwqiBXOoi5qPSBOIhpr+icEyr91DnXLwHUQrnEYb5UwtEso+2jRVbgl7B72rw61teyA==
X-Received: by 2002:a6b:2c08:: with SMTP id
 s8-v6mr20764729ios.217.1539120815513; 
 Tue, 09 Oct 2018 14:33:35 -0700 (PDT)
Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38])
 by smtp.googlemail.com with ESMTPSA id
 k15-v6sm2392655itk.8.2018.10.09.14.33.33
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 09 Oct 2018 14:33:34 -0700 (PDT)
References: <1353624141.3382.3.camel@HIDDEN>
From: Assaf Gordon <assafgordon@HIDDEN>
Message-ID: <f6e24283-b604-fe93-92af-62817607c9ef@HIDDEN>
Date: Tue, 9 Oct 2018 15:33:32 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <1353624141.3382.3.camel@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
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 (-)

(Triaging old bugs)

Hello,

On 22/11/12 03:42 PM, Van de Bugger wrote:
> Subject: [PATCH] printenv: -n option added -- show names of variables.
> 
> * src/printenv.c: -n option added -- show names of variables.
> ---
>   src/printenv.c | 17 +++++++++++++----
>   1 file changed, 13 insertions(+), 4 deletions(-)

Thank you for the patch. It seem it have slipped between the cracks long
ago - sorry about that.

So summarize:

With your patch, using "printenv -n VARNAME" adds
the variable name to the output. e.g.:

     $ printenv HOME
     /home/gordon

     $ printenv -n HOME
     HOME=/home/gordon

 From a cursory look this seems like a non-standard extension
that is not available in any other 'printenv' implementations.

Do you have any specific use-cases for this functionality
(that can't be easily done with existing methods) ?

I'm inclined to close it as "wontfix" - but will wait few days
in case others want to chime in with other opinions.

regards,
  - assaf




Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#12964: [PATCH] printenv: -n option added -- show names of variables.
Resent-From: Bernhard Voelker <mail@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Wed, 10 Oct 2018 09:04:02 +0000
Resent-Message-ID: <handler.12964.B12964.15391621965302 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 12964
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: patch
To: Assaf Gordon <assafgordon@HIDDEN>, Van de Bugger <van.de.bugger@HIDDEN>, 12964 <at> debbugs.gnu.org
Received: via spool by 12964-submit <at> debbugs.gnu.org id=B12964.15391621965302
          (code B ref 12964); Wed, 10 Oct 2018 09:04:02 +0000
Received: (at 12964) by debbugs.gnu.org; 10 Oct 2018 09:03:16 +0000
Received: from localhost ([127.0.0.1]:42896 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gAAOh-0001NS-Su
	for submit <at> debbugs.gnu.org; Wed, 10 Oct 2018 05:03:16 -0400
Received: from mout.kundenserver.de ([212.227.126.134]:50623)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1gAAOg-0001NF-Bn
 for 12964 <at> debbugs.gnu.org; Wed, 10 Oct 2018 05:03:14 -0400
Received: from [10.0.2.15] ([91.1.210.52]) by mrelayeu.kundenserver.de
 (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id
 1MjjGV-1fQ9bc14RP-00lB07; Wed, 10 Oct 2018 11:03:07 +0200
Received: from [10.0.2.15] ([91.1.210.52]) by mrelayeu.kundenserver.de
 (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id
 1MjjGV-1fQ9bc14RP-00lB07; Wed, 10 Oct 2018 11:03:07 +0200
References: <1353624141.3382.3.camel@HIDDEN>
 <f6e24283-b604-fe93-92af-62817607c9ef@HIDDEN>
From: Bernhard Voelker <mail@HIDDEN>
Message-ID: <87f3fc0e-f348-88c2-2af2-eaacd4be6453@HIDDEN>
Date: Wed, 10 Oct 2018 11:03:05 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.0
MIME-Version: 1.0
In-Reply-To: <f6e24283-b604-fe93-92af-62817607c9ef@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Language: de-DE-1901
Content-Transfer-Encoding: 8bit
X-Provags-ID: V03:K1:nTugTrJCH0FGZwSfiM/Mq0TcPJI6G3ZW2+iQu/AxaOzYcz48LhJ
 2t50EcdeaqGJM8OVfWm9sqnDxdP57VWLnHPIpsQHhLtOwz5a0E1nZK+Bm0w1UgL2eErVkWK
 CSwLXMfoNt9zxi8SPgNprw2Na/QIMk54LNLU51pFvC0wCmSGZ02UgxR3I6i8ZgbgNa2CGSs
 nw8xPhhXNUgXehXC8XeVA==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V01:K0:w397ASK7P7k=:9XNIQPbCUvoTu7/RWRnB75
 kdlh3JPdGcKL50fvwvJXIeXvWVy0BVMcczOMRxn07iTz7JaLl6Epql7xUNNj5hi/o9CjnHfQJ
 emSROiWq29leNbM+XdZ0DABoR4Uwr6pZTRMzU/lC2uECGFNAqyN5m5TbBhljcHy0gdBgMqV0S
 D3L/D+/X1fyiFl6j/M7UBN0k8h4K6FQFkduyn/3pHQmM+7QnCWaRx7gxt2wFvgborA8E2t3nY
 2tJli/mdNzm0W4mTij5obIFk21kI5Ppoy30itjhoKQbfcNYfnhVDj/av6zx9y8mY1Cvm7BfSW
 DUbPvIM09ziEsqG+VPTWg3iOpGDnWgUm9IIMYNia1nf0bSC//2dOKKSGrB/IjyThMohFk44Ag
 je52HiEj1T+hFV9MCTU2hD02JQq2uj/MlXYBFhm9LeSFvthw9qHEYWgvyS1pWu3CPF3CD3PwN
 Mnl2JOw1n/b1nug5pBDneXnOF7R2oFOTQaGWVoG4A4ID86FSjyKY7HctKLvb9ViQccDvzlwff
 2uVhIGn9Q/+f2pba+1oUKw+oUwPqDF9kUsygHiPrMfYOtFQ3gkkMIgCNScE4li5R6z2v5eqoi
 dPzPPIXxw+AHBsHUxOR1Lji5qSX5XcXBmML9SvXj/oOTgX8oYhgeBOB0FU3XpSfgekEt4vszG
 4DmH5+MNx/SwRZuAqFKat+vV/CVsT8f6UcrSooNZglaffcnV0OYp1zTyIjCA4LgPgBYjVkdNN
 FIeeSDgXzTwHPSEx
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 (-)

On 10/9/18 11:33 PM, Assaf Gordon wrote:
> With your patch, using "printenv -n VARNAME" adds
> the variable name to the output. e.g.:
> 
>     $ printenv HOME
>     /home/gordon
> 
>     $ printenv -n HOME
>     HOME=/home/gordon
> 
> From a cursory look this seems like a non-standard extension
> that is not available in any other 'printenv' implementations.

This feature looks like it should be possible to write out the current settings
to a file which could later be sourced in:

  printenv -n VAR > file

and in another shell (to get VAR back):

  . file

I'm afraid this is problematic once the value of a variable starts to have
funny characters, even a simple blank ' ' already screws things up.
For this kind of save/restore, -n would need to do correct shell quoting.

Have a nice day,
Berny




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 19 Oct 2018 01:16:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 18 21:16:58 2018
Received: from localhost ([127.0.0.1]:57884 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gDJPN-0008MI-Q0
	for submit <at> debbugs.gnu.org; Thu, 18 Oct 2018 21:16:57 -0400
Received: from mail-it1-f180.google.com ([209.85.166.180]:54155)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <assafgordon@HIDDEN>) id 1gDJPM-0008HX-6y
 for control <at> debbugs.gnu.org; Thu, 18 Oct 2018 21:16:56 -0400
Received: by mail-it1-f180.google.com with SMTP id q70-v6so2625494itb.3
 for <control <at> debbugs.gnu.org>; Thu, 18 Oct 2018 18:16:56 -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=xLsdYaRbldbyNHJIcEbP+h4OV53QVddfp/tzFbXqgVk=;
 b=vH09pdlLvrjuLekqUDGdYE52Rf+8A+/N+poshDt3bJq87NaNL0jh2wYm8ndxBcZNJN
 d5T5/i8MItuapbWDonmM7LYIL4AwEPvMKO3ZEoYRkT1jDDMO5SSmEDqxqujP5+LfqGZq
 2QzG8RDFT/PT/ZXVOX35yXqOY8jMtkTKEwSi3v84giuZd/ciiKE9n43jPyUw46yJPapl
 IgGsT1RHCLhqSSLxga1I1VCGhGcNk8Tzv4fAjPaIeIJiPX+PQxCvubBm3I/kYYjlvjoH
 pdpJ859IfBCvZwWoErl9br58ytv25ZHYmP+LWeWeQLWntuecz8eFkCyyaNaYVhADB2sX
 scjw==
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=xLsdYaRbldbyNHJIcEbP+h4OV53QVddfp/tzFbXqgVk=;
 b=LPlfllHCJYYFIRsbbjUD49aHCoZylDPQJmt7db5QH9RGp8J3Un+xqqA92mkPvhQLlR
 sz3HURTcXSynyu7Wl9Xh8LxzjRb8ZBMlLqg19t8MFazha17MqnOqCJpDpKphXOkrSyxD
 sYitC3BTOuRaB202EVymX47zViETLf3z0nYrx91gVjs7Czvpa0LoPIVqMEpsCKs1d2rD
 d5g8HlJZzEpidF0ubC4REZKFoCr9CyQeLVKVqXB/W1oe4cS/faQXKX0sXB6nJacM2I4G
 zyMK8loCeYECeqmbLIcADqDzYQriDe/RhmKmIFZF7JzS36hoGCc+67jdIrxDSwASRj+3
 kdoA==
X-Gm-Message-State: ABuFfohjUZHK+w6ZEN25bIrtaMyatncye157JSdqGV66ypNvCsi/giUT
 STz7WaeRrt/ckzgJEtMRwcrgM+cKjOk=
X-Google-Smtp-Source: ACcGV62Qmu8PdPUy1W2MlhniOiVkRQT6tfbCAhUgZGuQtmVb8l3bRHwYFQ8S8AMoA7nf2O0+PRJujA==
X-Received: by 2002:a24:1fc1:: with SMTP id
 d184-v6mr2040459itd.142.1539911809981; 
 Thu, 18 Oct 2018 18:16:49 -0700 (PDT)
Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38])
 by smtp.googlemail.com with ESMTPSA id
 y190-v6sm1634424itg.3.2018.10.18.18.16.48
 for <control <at> debbugs.gnu.org>
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Thu, 18 Oct 2018 18:16:48 -0700 (PDT)
To: control <at> debbugs.gnu.org
From: Assaf Gordon <assafgordon@HIDDEN>
Message-ID: <54d0daa8-a980-ddbf-bb11-763327981e0c@HIDDEN>
Date: Thu, 18 Oct 2018 19:16:47 -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:  severity 12964 wishlist [...] 
 Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 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 http://www.dnswl.org/, no
 trust [209.85.166.180 listed in list.dnswl.org]
 -0.0 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)
 [209.85.166.180 listed in wl.mailspike.net]
 -0.0 SPF_PASS               SPF: sender matches SPF record
 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 12964 wishlist





Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.