GNU bug report logs - #62052
_N_GNU_nonoption_argv_flags_ is no longer supported

Previous Next

Package: grep;

Reported by: Emanuele Torre <torreemanuele6 <at> gmail.com>

Date: Wed, 8 Mar 2023 15:39:01 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 62052 in the body.
You can then email your comments to 62052 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-grep <at> gnu.org:
bug#62052; Package grep. (Wed, 08 Mar 2023 15:39:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Emanuele Torre <torreemanuele6 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-grep <at> gnu.org. (Wed, 08 Mar 2023 15:39:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Emanuele Torre <torreemanuele6 <at> gmail.com>
To: bug-grep <at> gnu.org
Subject: _N_GNU_nonoption_argv_flags_ is no longer supported
Date: Tue, 7 Mar 2023 17:40:59 +0100
Hello.

I have noticed the _N_GNU_nonoption_argv_flags_ (where N is the pid of
grep) environment variable mentioned in the documentation. I tried to
play with it, but it does not seem to work:

 bash-5.1$ (declare -x _"$BASHPID"_GNU_nonoption_argv_flags_=1111111
 > exec grep -e)
 grep: option requires an argument -- 'e'
 Usage: grep [OPTION]... PATTERNS [FILE]...
 Try 'grep --help' for more information.

I have checked gnulib's changelog and it looks like support for it has
been removed in 2017, and before that it has not been enabled by default
since 2001. (and, as far as I can tell, GNU grep never explicitly
enabled it.)

Furthermore, this environment variable used to be set this environment
variable automatically by bash up to version 2.0, but since version 2.01
(released in 1997) bash has stopped using it.

I think, at this point, it would be best to not mention that environment
variable in the documentation; it has not been used or even supported
for a long time so it is just confusing.

Bye. :)
 emanuele6




Reply sent to Jim Meyering <jim <at> meyering.net>:
You have taken responsibility. (Thu, 09 Mar 2023 14:41:01 GMT) Full text and rfc822 format available.

Notification sent to Emanuele Torre <torreemanuele6 <at> gmail.com>:
bug acknowledged by developer. (Thu, 09 Mar 2023 14:41:02 GMT) Full text and rfc822 format available.

Message #10 received at 62052-done <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: Emanuele Torre <torreemanuele6 <at> gmail.com>
Cc: 62052-done <at> debbugs.gnu.org
Subject: Re: bug#62052: _N_GNU_nonoption_argv_flags_ is no longer supported
Date: Thu, 9 Mar 2023 06:39:47 -0800
[Message part 1 (text/plain, inline)]
On Wed, Mar 8, 2023 at 7:39 AM Emanuele Torre <torreemanuele6 <at> gmail.com> wrote:
> I have noticed the _N_GNU_nonoption_argv_flags_ (where N is the pid of
> grep) environment variable mentioned in the documentation. I tried to
> play with it, but it does not seem to work:
>
>  bash-5.1$ (declare -x _"$BASHPID"_GNU_nonoption_argv_flags_=1111111
>  > exec grep -e)
>  grep: option requires an argument -- 'e'
>  Usage: grep [OPTION]... PATTERNS [FILE]...
>  Try 'grep --help' for more information.
>
> I have checked gnulib's changelog and it looks like support for it has
> been removed in 2017, and before that it has not been enabled by default
> since 2001. (and, as far as I can tell, GNU grep never explicitly
> enabled it.)
>
> Furthermore, this environment variable used to be set this environment
> variable automatically by bash up to version 2.0, but since version 2.01
> (released in 1997) bash has stopped using it.
>
> I think, at this point, it would be best to not mention that environment
> variable in the documentation; it has not been used or even supported
> for a long time so it is just confusing.

Thank you for noticing and reporting that.
Done with the attached.
[grep-_N_GNU_nonoption_argv_flags_.patch (application/octet-stream, attachment)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 07 Apr 2023 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 18 days ago.

Previous Next


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