help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why does </proc/self/environ not work in bash?


From: Christoph Anton Mitterer
Subject: Re: why does </proc/self/environ not work in bash?
Date: Mon, 12 Feb 2024 01:55:20 +0100
User-agent: Evolution 3.50.3-1

On Mon, 2024-02-12 at 01:11 +0100, Christoph Anton Mitterer wrote:
> env -i 'VAR=valid-shell-variable-name' '+=invalid-shell-variable-
> name' /proc/self/exe -c "set -e; cd /; cd /; env"

This needs obviously be "/proc/$$/exe"... otherwise it would be env
itself.
Sorry for copy&pasting mess ^^

Cheers,
Chris.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]