You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have a flag, where it can expand $HOME shorthand (~) to absolute paths.
Describe alternatives you've considered
The only working solution is to use the good old bash env variable parsing trick:
set -a &&. ./.env &&set +a
But with this, I loose every control over the file and I have to format it very carefully. It works with my files, but not with the ones from various repositories.
Additional context
None.
The text was updated successfully, but these errors were encountered:
DJviolin
changed the title
Expand Home directory shorthand ~ (tilde character) to absolute path
Expand $home directory shorthand ~ (tilde character) to absolute path
Aug 9, 2022
DJviolin
changed the title
Expand $home directory shorthand ~ (tilde character) to absolute path
Expand $HOME directory shorthand ~ (tilde character) to absolute path
Aug 9, 2022
Is your feature request related to a problem? Please describe.
I'm using shdotenv in a special Laradock project structure, where I merge Laradock's and my environment variables into one:
However, shdotenv cannot expand the tilde character, if I put the value in quote or not, doesn't matter:
Output I'm getting:
APACHE_SSL_PATH=~/.laradock/ssl/apache2
Expected output:
APACHE_SSL_PATH=/home/user/.laradock/ssl/apache2
Describe the solution you'd like
It would be nice to have a flag, where it can expand $HOME shorthand (~) to absolute paths.
Describe alternatives you've considered
The only working solution is to use the good old bash env variable parsing trick:
But with this, I loose every control over the file and I have to format it very carefully. It works with my files, but not with the ones from various repositories.
Additional context
None.
The text was updated successfully, but these errors were encountered: