[Bug 3438] New: env var that is SetEnv'ed multiple times in the same SetEnv directive, is sent/printed several times
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Sun May 22 05:11:53 AEST 2022
https://bugzilla.mindrot.org/show_bug.cgi?id=3438
Bug ID: 3438
Summary: env var that is SetEnv'ed multiple times in the same
SetEnv directive, is sent/printed several times
Product: Portable OpenSSH
Version: v9.0p1
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Miscellaneous
Assignee: unassigned-bugs at mindrot.org
Reporter: calestyo at scientia.org
Hey.
Not sure whether this is a bug, but I guess so.
When doing e.g.
SetEnv LC_ALL=C
SetEnv LC_ALL=C.UTF-8
only the former will show up in e.g. -G as:
setenv LC_ALL=C
respectively -v as:
debug1: channel 0: setting env LC_ALL = "C"
which is, I guess, as it should be.
However, when using:
SetEnv LC_ALL=C LC_ALL=C.UTF-8
-G will give:
setenv LC_ALL=C
setenv LC_ALL=C.UTF-8
and -v:
debug1: channel 0: setting env LC_ALL = "C"
debug1: channel 0: setting env LC_ALL = "C.UTF-8"
and in the remote shell, the env var is actually set to the latter
("C.UTF-8").
If actually desired, than at least this should be documented in SetEnv.
And -G should probably only print the one line that actually matters.
Thanks,
Chris.
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list