https://bugs.winehq.org/show_bug.cgi?id=38293
Bug ID: 38293 Summary: Setting PROMPT in a batch file resets on exit of batch file Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: stu.axon@gmail.com Distribution: ---
Creating a batch file with either
REM 1.bat PROMPT someprompt
REM 2.bat SET PROMPT=someprompt
And running it with:
wine cmd /k 1.bat wine cmd /k 2.bat
cmd.exe will launch but the prompt will still be the default prompt.
https://bugs.winehq.org/show_bug.cgi?id=38293
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |us@edmeades.me.uk
--- Comment #1 from Jason Edmeades us@edmeades.me.uk --- At a guess (untested, I dont have a Linux atm) you need to move:
in wcmdmain.c
2685 SetEnvironmentVariableW(promptW, defaultpromptW);
to between
2420 interactive = FALSE; and 2422 if (opt_c || opt_k) {
If someone wants to test that and it works, feel free to submit a patch... Was just seeing the state of CMD bugs!
https://bugs.winehq.org/show_bug.cgi?id=38293
Hugh McMaster hugh.mcmaster@outlook.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hugh.mcmaster@outlook.com
--- Comment #2 from Hugh McMaster hugh.mcmaster@outlook.com --- Fixed by commit 05bc632add5f6bc56de62632612eb10a1bff2725.
https://bugs.winehq.org/show_bug.cgi?id=38293
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |05bc632add5f6bc56de62632612 | |eb10a1bff2725 Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #3 from Austin English austinenglish@gmail.com --- (In reply to Hugh McMaster from comment #2)
Fixed by commit 05bc632add5f6bc56de62632612eb10a1bff2725.
Fixed.
https://bugs.winehq.org/show_bug.cgi?id=38293
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.8-rc4.
https://bugs.winehq.org/show_bug.cgi?id=38293
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net Version|unspecified |1.7.39