-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expansion of ~ stopped working on windows CMD (M2_HOME not properly set) #467
Comments
I do not know if this is blocking you: You can edit the variable and manually replace |
The bug starts in the code here:
So the problem is that this script has been refactored in commit ad2cf72#diff-78672940921d6ea3caa0fafb3281c3b2 but the part to resolve the tilde ~ that is not understood by windows properly was not changed accordingly. So before there where two variables var (variable name/key) and value (value of the env. variable) and now we only have line (entire line of variable assignment).Hence the code can not work:
|
The problem is that windows BAT/CMD (and partially shell-scripting in general) is not a reasonable programming language but something for quick hacks and this really applies to BAT and CMD that is historically grown since many decades. I will try to come up with a fix for this issue and replace |
As expected already replacing a simple |
Characters like |
I removed
You may also use something like Finally, tools like the |
I found that CMD uses |
According to maintenance it would be best to support only bash and stop users from using CMD, powershell or cygwin in devonfw-ide. |
I just figured out that CMD only supports 2 levels of nesting
|
Expected behavior
As a user, I want to use devonfw-ide on windows so that I can execute maven builds on a devonfw console.
Actual behavior
M2_REPO is not recognized and thus every mvn command is running on ~/.m2/repository in the current execution path.
Steps to reproduce (bug) / Use Case of feature request (enhancement)
export M2_REPO=~/.m2/repository
in devon.propertiesmvn -X
or `echo %M2_REPO%Related/Dependent Issues
Comments/Hints:
Affected version:
The text was updated successfully, but these errors were encountered: