Commit Graph

134 Commits

Author SHA1 Message Date
Frédéric Delanoy c4db72f50e cmd: verify_mode has BOOL type instead of int. 2011-09-16 17:24:19 +02:00
Frédéric Delanoy b3561bf82e cmd: echo_mode has BOOL type instead of int. 2011-09-16 17:24:18 +02:00
Frédéric Delanoy 9bf515974d cmd: Make some variables static. 2011-09-14 17:27:20 +02:00
Christian Costa faa23d2a16 cmd: Move externals list at the same place as the builtins one so it's easier to known how a command is implemented. 2011-09-12 11:10:53 +02:00
Frédéric Delanoy 4c3c2b121e cmd: Backup echo mode before running external batch file. 2011-09-09 16:09:58 +02:00
Frédéric Delanoy 3627c28958 cmd: Add an output parameter to WCMD_parameter to point to the end of the extracted param, if requested. 2011-09-08 20:08:07 +02:00
Christian Costa 4aa865ed76 cmd: Remove attrib from builtins list. 2011-09-07 11:35:58 +02:00
Christian Costa 7b41ffbf61 attrib: Move implementation from cmd.exe to the standalone command. 2011-09-06 13:25:50 +02:00
Frédéric Delanoy 54c2f6491d cmd: Get rid of obsolete autoexec.bat handling code. 2011-09-06 12:23:56 +02:00
Frédéric Delanoy c1c76d279e cmd: Add WCMD_output_asis_stderr function. 2011-08-30 16:55:46 +02:00
Frédéric Delanoy 93a68fa659 cmd: Avoid reading garbage when looking for redirection handle. 2011-08-29 13:55:47 +02:00
Frédéric Delanoy bbdaed2f33 cmd: Fix redirection handle parsing. 2011-08-29 13:55:41 +02:00
Frédéric Delanoy ef70d88be0 cmd: Make some WCHAR arrays static. 2011-08-26 11:32:35 +02:00
Frédéric Delanoy eda33f22ff cmd: Fix if/else tab handling. 2011-08-25 14:51:02 +02:00
Frédéric Delanoy 6d3fd3abcd cmd: Fix REM tab handling. 2011-08-25 14:50:51 +02:00
Frédéric Delanoy f37ab586d8 cmd: Skip tabs as well as spaces in WCMD_skip_leading_spaces. 2011-08-25 14:50:38 +02:00
Frédéric Delanoy 7b125126a7 cmd: Fix FOR tab handling. 2011-08-25 14:50:31 +02:00
Frédéric Delanoy 20fa3fe802 cmd: Fix FOR tab handling. 2011-08-24 14:01:13 +02:00
Frédéric Delanoy ff501904a7 cmd: Constify some function parameters. 2011-08-23 16:53:50 +02:00
Frédéric Delanoy bb47576f59 cmd: Rename WCMD_strtrim_leading_spaces to WCMD_skip_leading_spaces to better reflect its purpose. 2011-08-23 16:53:50 +02:00
Frédéric Delanoy 0758390607 cmd: Clarify some trace messages. 2011-08-23 16:53:50 +02:00
Frédéric Delanoy d1731eb98a cmd: Use CSTR_* instead of hardcoded values as result of CompareStringW. 2011-08-23 16:53:49 +02:00
Frédéric Delanoy 71a237d478 cmd: Fix handling of lines starting with echo. or echo:. 2011-08-05 16:41:14 +02:00
Dan Kegel 15ce9a5784 cmd: mkdir: Handle multiple arguments. 2011-08-03 17:44:53 +02:00
Frédéric Delanoy 8b73720d4e cmd: Fix some comments. 2011-07-27 12:28:26 +02:00
Frédéric Delanoy f43297f989 cmd: Do not show prompt when echo mode is off. 2011-07-15 17:07:46 +02:00
Frédéric Delanoy 123d5d0d60 cmd: Output a empty line before version in VER. 2011-07-15 17:03:17 +02:00
Dan Kegel 32ea7d1f2e cmd: WCMD_delete: fix /s for dirnames containing spaces, add test. 2011-06-02 17:24:58 +02:00
Dan Kegel 1857a05996 cmd: Don't read past end of thisVar in WCMD_expand_envvar (valgrind). 2011-05-26 15:23:57 +02:00
Detlef Riekenberg 7045e478a8 cmd: Add CHOICE builtin with DOS6 to XP commandline parameter. 2010-12-20 12:47:41 +01:00
Alexandre Goujon 4cd2a0e542 cmd: Add a space at the end of the first echo'ed batch line. 2010-11-08 18:13:36 +01:00
Michael Stefaniuc 71e647fe51 cmd: Don't treat all command lines with '/?' as builtin commands. 2010-06-22 11:22:55 +02:00
Yann Droneaud 727df7a2ef cmd: Fixed uninitialised field in WCMD_addCommand() (Valgrind). 2010-03-15 13:42:08 +01:00
Arjun Comar a607f53779 cmd: Fix cmd to take /? as a help parameter. 2010-03-04 17:31:05 +01:00
Paul Vriens 4064efdc27 cmd: Fix a memory leak (Valgrind). 2010-02-23 12:06:51 +01:00
Dan Kegel b6e8e13599 cmd: Fix echoing of multiline commands. 2010-01-04 11:41:28 +01:00
Dan Kegel 27235ecb65 cmd: Echoed prompts are preceded by a blank line. 2010-01-04 11:41:28 +01:00
Andrew Nguyen f06cb3e6c0 cmd: Set the PROMPT environment variable on startup. 2009-12-31 12:12:18 +01:00
Austin English cc72c4d346 cmd: Use DOS newlines, not UNIX. 2009-12-23 14:27:31 +01:00
Alexandre Julliard 79b00726f2 cmd: Use the explicit name for all A/W function. 2009-12-09 18:52:40 +01:00
Marcus Meissner f62218fc66 cmd: Break out of the argument scan loop (Coverity). 2009-12-04 14:34:58 +01:00
Peter Dons Tychsen a78ccf1160 cmd: Fix handling of quotes when line includes redirections and/or pipes. 2009-10-08 14:00:00 +02:00
André Hentschel 765d9a1411 wcmd: Ignore start and end quotes. 2009-08-29 16:48:52 +02:00
Francois Gouget 0c01b71a4e cmd: Replace malloc() with HeapAlloc(). 2009-06-15 13:42:30 +02:00
Francois Gouget c48e5e048f cmd: Introduce a WCMD_strsubstW() function to simplify string substitutions. 2009-06-15 13:42:29 +02:00
James Hawkins 474276d569 cmd: Fix a memory leak (Coverity 904). 2009-03-23 18:21:05 +01:00
Diaa Sami 8ea1a12ed6 cmd: Fixed a number of buffer overflows. 2009-03-03 14:03:48 +01:00
Erich Hoover 4691cc4f85 wcmd: Properly cleanup redirects when there are no in/out/error pipes. 2009-02-12 11:54:02 +01:00
Erich Hoover 8defde719a wcmd: Fix redirecting a pipe to another pipe. 2009-01-13 16:39:18 +01:00
Erich Hoover 423929ad10 wcmd: Handle batch scripts containing quotes within quotes. 2009-01-13 16:39:13 +01:00