Bug 236204 - Cannot use comma in setenv in login.conf
Summary: Cannot use comma in setenv in login.conf
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 12.0-STABLE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-04 12:11 UTC by Michael Osipov
Modified: 2019-03-05 09:15 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Osipov 2019-03-04 12:11:33 UTC
I cannot set the following in login.conf

> :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,\
> HTTP_PROXY=http\c//194.145.60.1\c9400,\
> HTTPS_PROXY=http\c//194.145.60.1\c9400,\
> FTP_PROXY=ftp\c//194.145.60.1\c9400,\
> NO_PROXY="localhost,.siemens.net,.siemens.com,.siemens.de":\

because comma seperates the vars themselves.

While fetch(1) and curl(1) also supports whitespace-delimited values, poudriere chokes on: https://github.com/freebsd/poudriere/issues/669

There must be some mechanism to escape commas just like semicolons.
Comment 1 Bryan Drewery freebsd_committer 2019-03-04 19:37:32 UTC
Poudriere is effectively fine here with this syntax (no quotes needed):
        :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,NO_PROXY=localhost .siemens.net .siemens.com .siemens.de:\
Comment 2 Michael Osipov 2019-03-05 09:15:03 UTC
I cannot confirm this. Besides poudriere, it whould be possible in general to have commas in env values.