Closed mtelka closed 10 months ago
Hello,
Having $HOME
defined seems required in order to test the configuration file path.
Also, I just read that the POSIX specification requires the OS to always set a value for $HOME
.
So, it seems normal that tests fail when run without the $HOME
environment variable. What do you think?
Sorry, the stackexchange article misinterprets POSIX. The linked POSIX page says this:
8.1 Environment Variable Definition ... If the variables in the following two sections are present in the environment during the execution of an application or utility, they shall be given the meaning described below. ... If they are defined in the application's environment, the utilities in the Shell and Utilities volume of IEEE Std 1003.1-2001 and the functions in the System Interfaces volume of IEEE Std 1003.1-2001 assume they have the specified meaning. Conforming applications shall not set these environment variables to have meanings other than as described. ... 8.2 Internationalization Variables ... 8.3 Other Environment Variables ... HOME The system shall initialize this variable at the time of login to be a pathname of the user's home directory. See
.
So in other words, HOME
does not need to be set. But if it is then its meaning is as specified by POSIX.
When tests are run without the
HOME
environment variable then they fails: