aspnet / dnvm

OBSOLETE - see readme
Other
174 stars 61 forks source link

Path with & is not processed correctly even when wrapped in " " #500

Closed AndrewH2O closed 6 years ago

AndrewH2O commented 8 years ago

dnvm commands that amend the environment path on windows 8.1 report 'MySQL' is not recognised as an internal or external command where the path contains an &, even though the path is surrounded by quotes:

eg Path contains: "C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.4 & MySQL Utilities 1.5.4 1.5\";"C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.4 & MySQL Utilities 1.5.4 1.5\Doctrine extensions for PHP\"

dnvm use 1.0.0-rc1-update1 -r clr -arch x64 Adding C:\Users[myUserName].dnx\runtimes\dnx-clr-win-x64.1.0.0-rc1-update1\bi n to process PATH 'MySQL' is not recognized as an internal or external command, operable program or batch file. 'MySQL' is not recognized as an internal or external command, operable program or batch file.

Note: what is happening here I think is that "C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.4 & MySQL Utilities 1.5.4 1.5\" is split out as two : C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.4 MySQL Utilities 1.5.4 1.5\ where MySql is seen as a separate instruction and similarly for "C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.4 & MySQL Utilities 1.5.4 1.5\Doctrine extensions for PHP\" Which explains why the error above is seen twice. At first I thought that MySql/bin needed to be added to the path but that is not the issue here.

Workaround: temporarily amend path to exclude '&' under environment variables.

muratg commented 8 years ago

Thanks for reporting this issue. For RC2, we're planning to retire dnvm, dnx and dnu in favor of dotnet CLI. Moving this to backlog until the transition.