Re: Copying environment variables

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

 



On Tue, Jun 30, 2020 at 11:20 AM Christopher Schultz
<chris@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> All,
>
> Is it possible to "copy" an environment variable to another name?
> Something like this:
>
> SetEnv foo "bar"
> SetEnv baz ${foo}e
>
> Now, "baz" has value "bar".

If it's set early enough, try SetEnvIf instead.  The 2nd parameter can
be an existing variable and the value can be a backreference.
If it's not set early enough, you can do a no-op RewriteRule .* -
[E=baz:%{ENV:foo}]

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux