WSL $PATH dir spaces issue #6311
-
EnvironmentSteps to reproduceExecuting this script. The -config file executed by the script is here. Expected behaviorI expected to set up the environmental variables for the software. Actual behaviorLong StoryHi everybody, I have a problem with the environmental variable PATH on WSL. I am trying to install a software called NCrystal , which requires to set up some environmental variables. However, when I try to execute the script given by the developers I end up with the error above. It seems like Linux is breaking the PATH variable due to the spaces in windows directories. Here you can find the PATH variable as printed out by Thank you for your time |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
Sorry, you’re trying to run the contents of the environment variable |
Beta Was this translation helpful? Give feedback.
-
Apologies, I thought it was the command to show the saved PATH, not execute it. I can change the description of the issue, but the problem when trying to export the environmental variable persists though |
Beta Was this translation helpful? Give feedback.
-
|
This is linux-behavior, variation #1766 #5099, others. Best guess the error in the script is not the If you bring it up in NCrystal-related forum, it is usually better to frame the ask in Linux terms instead of WSL. Looks like: |
Beta Was this translation helpful? Give feedback.
This is linux-behavior, variation #1766 #5099, others. Best guess the error in the script is not the
exportin the edited OP, but further up (wherever$PATHgets parsed). [Unintuitively enough, thatexport tmpnccfglooks okay, at least from here. The error described isnot a valid identifier, andtmpnccfgis a valid identifier.]If you bring it up in NCrystal-related forum, it is usually better to frame the ask in Linux terms instead of WSL. Looks like: