The ${name}_env is not convenient for setting multiple environmental variables
or variables that may have spaces in the value field. Support loading
environment from a file.
Details
Details
- Reviewers
krion - Commits
- rS334221: rc.subr: Support loading environmental variables from a file
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 15168 Build 15246: arc lint + arc unit
Event Timeline
Comment Actions
When the env file is missing it breaks the rc script in a fairly obvious way:
.: cannot open /usr/local/etc/fake.env.file.not.there: No such file or directory
This seems fine to me and extra error handling probably isn't necessary unless someone else can think of another issue I'm overlooking.
etc/rc.subr | ||
---|---|---|
962 | [ -n "$_env_file" ] && [ -r "${_env_file}" ] |