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
While trying to customize my .bashrc/.bash_profile, I was unable to retrieve the values from environment variables that included :, such as...
PAL:Drive=V:
PAL:DriveLetter=V
I tried various different quotes and {} methods, but none of them worked. These variables are incredibly useful for things like adding directories to the $PATH and for creating custom variables to be used in programs launched from the terminal.
Is there no way to access the value of these variables from within Git-Bash/.sh? At the moment, my best solution is to parse the variables that are ASCII compliant. So to get the portable drive litter, I would do...
PORTABLE_DRIVE=${HOME:1:1}
The text was updated successfully, but these errors were encountered:
While trying to customize my .bashrc/.bash_profile, I was unable to retrieve the values from environment variables that included
:
, such as...I tried various different quotes and {} methods, but none of them worked. These variables are incredibly useful for things like adding directories to the $PATH and for creating custom variables to be used in programs launched from the terminal.
Is there no way to access the value of these variables from within Git-Bash/.sh? At the moment, my best solution is to parse the variables that are ASCII compliant. So to get the portable drive litter, I would do...
PORTABLE_DRIVE=${HOME:1:1}
The text was updated successfully, but these errors were encountered: