Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
None
Description
Created an attachment (id=5592)
modified files base/shell/cmd
Made a small adaption to redirect all TRACE output to the cmd console
You can control it by setting an environment variable.
example:
D:\Apps>dir
Volume in drive D is Data
....
D:\Apps>set CMDTRACE=on
D:\Apps>dir
DoCommand: ('L"dir"' 'L""')
Attributes mask/value 6/0
(B) Bare format : 0
(C) Thousand : 1
(W) Wide list : 0
(D) Wide list sort by column : 0
(L) Lowercase : 0
(N) New : 1
(O) Order : 0
(P) Pause : 0
(Q) Owner : 0
(S) Recursive : 0
(T) Time field : 1
(X) Short names : 0
Parameter : L"*"
Volume in drive D is Data
....
2 files are changed:
precomp.h:
after #include <wine/debug.h> where TRACE is being defined
if CMD_TRACE_DYNAMIC is defined, redefine TRACE
set.c:
defined a global BOOL for the current state and added a cmd_trace function
Inside the function cmd_set it checks for the var CMDTRACE if it is being set or unset and uses that for the current state
Code is only included if CMD_TRACE_DYNAMIC is defined in precomp.h
Attached a zip file with the modified files (from the 3.12 version)
Attachments
Issue Links
- blocks
-
CORE-8002 METABUG - cmd.exe Command-line interpreter bugs
- Open