Page MenuHomeFreeBSD

setclassenvironment: trim leading spaces in variable names
ClosedPublic

Authored by yuripv on Jul 13 2020, 1:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 25, 3:18 AM
Unknown Object (File)
Wed, Sep 24, 9:40 PM
Unknown Object (File)
Jul 22 2025, 2:40 PM
Unknown Object (File)
Jul 22 2025, 2:40 PM
Unknown Object (File)
Jul 22 2025, 2:40 PM
Unknown Object (File)
Jul 8 2025, 2:11 PM
Unknown Object (File)
Jul 1 2025, 11:55 AM
Unknown Object (File)
Jun 27 2025, 7:25 AM

Details

Summary

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247947

Trim leading spaces in variable names when the list is e.g. pretty-formatted in /etc/login.conf or ~/.login_conf.

Test Plan

Set multiline tab/whitespace-indented setenv list in /etc/login.conf and ~/.login_conf, check that variables are correctly set in the environment.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable