New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow bat to replace variables on text #2914
Comments
I personally feel like having this happen automatically would not be desired at all, as it could be highly confusing. Especially when looking at a config file for something which would actually be deployed to a different environment. |
I'm with @keith-hall on this. Automatically expanding environment variables will likely cause confusion, even in code. function newTempFile($tmpdir) {
$file = fopen("${tmpdir}/file.txt", "w");
if ($file === false) {
// do something
}
return $file;
} If environment variables were replaced, it would lead the user into thinking the new temporary file is located at A preprocessing step would be a better place to do environment variable expansion. |
Something like this:
should be replaced automatically by the env variable
HOME
The text was updated successfully, but these errors were encountered: