Menu

#198 msys PATH envvar cannot reach windows path

1.0
closed
nobody
None
2017-02-04
2015-10-06
Alfgaar
No

here is what msys shell shows for path:
$ $PATH
bash: /mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/ConEmu/ConEmu:/c/Tcl/bin:/c/Ruby22-x64/bin:/c/Program: No such file or directory

as you can see the folder names of windows which has space are broken in the path... and all other paths that follows one path that has spaces in it is lost..

Discussion

  • Matthieu Vachon

    Matthieu Vachon - 2015-10-06

    Only doing $PATH will try to interpret the command stored in the variable PATH. You need to use echo to show content of a variable:

    $ echo $PATH
    ./bin:/home/movachon/local/bin:/usr/local/bin:/usr/bin:/usr/bin:/mingw64/bin
    

    To show that execute the command in the variable:

    $ export TRY_ME="echo 'Echo command executed!'"
    $ $TRY_ME
    'Echo command executed!'
    

    Unless you are meaning something else, this ticket should be closed.

    Regards,
    Matt

     

    Last edit: Matthieu Vachon 2015-10-06
  • David Macek

    David Macek - 2017-02-04
    • status: open --> closed
     
  • David Macek

    David Macek - 2017-02-04

    Thanks, Matthieu, for responding. Since there was no response, I'm closing.