Open Kojoley opened 1 year ago
Turns out it is a cmd.exe
bug https://github.com/microsoft/terminal/issues/15212 and they won't fix it:
Oh I'm so sorry to be the person that lets you know, but yea, cmd.exe isn't actively maintained anymore (beyond security patches). Yea, the Terminal team does own
cmd.exe
, but we're not gonna be making any changes to it anytime soon.
Make sure you completed the following tasks
Environment and version details
Brief problem description
Steps to reproduce the issue
C:\correct\asd.bat
C:\wrong\jamroot
Execute following:
Actual behavior summary
%~dp0
points to current working directory.Expected behavior summary
%~dp0
points to the bat self path.That doesn't happen for python scripts though
C:\correct\qwe.py
C:\wrong\jamroot
Execute following: