Envdir should omit loading hidden files (e.g. .MY_VARIABLE.swp) into the environment.
Although DJB forgot to cover this case, there are 2 reasons for this:
A practical one: envdir currently crashes if you run it on a folder while the user has an editor open on a file in that folder. Even if the crash would be fixed, it's dangerous to pass binary environment variables to programs.
A semantic one: consistently throughout UNIX, dot-prefixed files are meant to be concealed from users, e.g. not displayed by ls.
I'm willing to provide a pull request for this. I'd simply exclude hidden files via envdir.env.isenvvar() and provide the respective test.
Before putting in the time to do so, please confirm whether you welcome this and will merge it.
Envdir should omit loading hidden files (e.g.
.MY_VARIABLE.swp
) into the environment.Although DJB forgot to cover this case, there are 2 reasons for this:
envdir
currently crashes if you run it on a folder while the user has an editor open on a file in that folder. Even if the crash would be fixed, it's dangerous to pass binary environment variables to programs.ls
.I'm willing to provide a pull request for this. I'd simply exclude hidden files via
envdir.env.isenvvar()
and provide the respective test.Before putting in the time to do so, please confirm whether you welcome this and will merge it.