It seems that if I use a command like:
rhc env set VARIABLE="$OPENSHIFT_DATA_DIR/file"
the directory reference variable never expands, and as a result, I cannot use it for my application. Is there any way to fix this?
EDIT
As @ timo.rieber pointed out in his answer, this will not work because the variable is resolved locally where it does not matter. Actually:
$ rhc env set VARIABLE="$OPENSHIFT_DATA_DIR/file"
Setting environment variable(s) ... done
$ rhc env show VARIABLE
VARIABLE=/file
However, if I use single quotes to avoid immediate expansion:
$ rhc env set VARIABLE='$OPENSHIFT_DATA_DIR/file'
Setting environment variable(s) ... done
$ rhc env show VARIABLE
VARIABLE=$OPENSHIFT_DATA_DIR/file
Interestingly, this also does not work (i.e., the extension does not occur when it is used by the process), even if this time it is correctly installed.
source
share