GNU bug report logs -
#44412
RFE for 'env'?
Previous Next
Reported by: L A Walsh <coreutils <at> tlinx.org>
Date: Tue, 3 Nov 2020 09:15:02 UTC
Severity: normal
Tags: notabug
Done: Bernhard Voelker <mail <at> bernhard-voelker.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On 11/3/20 10:14 AM, L A Walsh wrote:
> I wanted to pass a switch to an interp line, but 'env' seems to dislike it.
>
> I also noticed that env ignores '--' to indicate end of switches that it
> should
> process.
>
> How difficult would this be to do? Specifically,
> allow double-dash ("--") to indicate the end of 'env' switches such
> that any following arguments would be passed to program to be run?
>
> I was surprised when I found out it didn't do this.
>
> Thanks!
As you didn't give an example, it's hard for me to imagine what you
want to achieve, or better why current 'env' would "dislike it".
I mean, passing an environment variable starting with a minus already
works by using "--" as an option separator:
$ env --chdir=/tmp -- -KEY=VAL printenv -- -KEY
VAL
What did I miss?
Have a nice day,
Berny
This bug report was last modified 4 years and 196 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.