https://bugs.winehq.org/show_bug.cgi?id=49457
Bug ID: 49457 Summary: Simple command in powershell 6 (pwsh) containing "$" only works for me if the dollar sign is escaped Product: Wine Version: 5.11 Hardware: x86 URL: https://github.com/PowerShell/PowerShell/releases/down load/v6.1.6/PowerShell-6.1.6-win-x64.msi OS: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: xerox.xerox2000x@gmail.com Distribution: ---
I tried simple command like
wine pwsh.exe /c $env:username
and it gives ":username"
If one escapes the dollarsign it works correctly:
wine pwsh.exe /c $env:username
gives "louis"
When you first start powershell console like "wine start pwsh", and type in the console it works correctly (without the escape character)
I tried 1st command in Windows 7 cmd, and it works correctly (so without having to add the escape character)
(The same story above holds for powershell 2.0 in wine too, but that is more troublesome to get installed due to few bugs in bugilla, so i files it here for pwsh.exe)