https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247947
Bug ID: 247947
Summary: Consider trimming values passed to setenv in
login.conf
Product: Base System
Version: 12.1-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: conf
Assignee: [email protected]
Reporter: [email protected]
Consider I want to write in login.conf:
default:\
...
:setenv=BLOCKSIZE=K,\
LSCOLORS=ExGxFxdxCxDxDxhbadExEx,\
CLICOLOR=YES,\
LESS=-x4 -R,\
NCURSES_NO_UTF8_ACS=1,\
EDITOR=vim:\
...
After cap_mkdb is run on /etc/login.conf and a relogin the indented env vars
have preceding spaces and are unusable. While one can remove them, this breaks
visual formatting and makes the file looks odd.
Consider trimming after splitting at the comma.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"