reactos/base/shell/cmd
Katayama Hirofumi MZ 2320c37151
[CMD] Enable Ctrl+H (^H) as backspace (#6562)
Ctrl+H should pretend like BackSpace key
on Command Prompt.
JIRA issue: CORE-5702
- Add Ctrl+H action in ReadCommand function.
2024-03-01 22:51:57 +09:00
..
lang [CMD] Update Romanian (ro-RO) translation (#6488) 2024-02-12 17:59:02 +01:00
res Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
alias.c [CMD] Add missing memory allocation NULL checks (#161). CORE-8304 2018-08-21 14:02:24 +02:00
assoc.c [CMD] ASSOC: Simplify the code and make it more robust; fix returned ERRORLEVEL values. 2020-09-23 00:22:47 +02:00
batch.c [CMD] Do not use an intermediate buffer when reading lines from batch files 2021-06-24 15:03:36 +02:00
batch.h [FORMATTING] Remove trailing whitespace. Addendum to 34593d93. 2021-09-13 03:52:22 +02:00
beep.c Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
call.c [CMD] CALL: Fix the implementation of the CALL command, make it more compatible with Windows' CMD. 2020-09-27 19:05:23 +02:00
choice.c [REACTOS] Add '\n' to debug logs 2022-05-04 03:28:38 +03:00
cls.c Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
CMakeLists.txt [CMD] Improve performance a bit 2021-06-24 15:03:36 +02:00
cmd.c [CMD] Correctly honour the "short" path flag in %~var enhanced variables expansion. (#5433) 2023-07-14 14:36:55 +02:00
cmd.h [CMD] CALL: Fix the implementation of the CALL command, make it more compatible with Windows' CMD. 2020-09-27 19:05:23 +02:00
cmd.rc [CMD] Add Portuguese Brazilian (pt-BR) translation (#4957) 2023-06-26 20:22:10 +03:00
cmddbg.c Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
cmddbg.h Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
cmdinput.c [CMD] Enable Ctrl+H (^H) as backspace (#6562) 2024-03-01 22:51:57 +09:00
cmdtable.c [LABEL][CMD] Convert the label command to a standalone executable 2019-09-22 14:51:23 +02:00
cmdver.h Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
color.c Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
config.h [LABEL][CMD] Convert the label command to a standalone executable 2019-09-22 14:51:23 +02:00
console.c [CMD] Use correct console input mode in ConInString() 2023-11-16 21:58:54 +01:00
console.h [CMD] Fix missing/misplaced newlines at end of displayed errors and prompts. 2023-11-16 17:06:40 +01:00
copy.c [CMD] Fix build. Addendum to 67ac583b5. 2022-09-25 23:59:18 +02:00
ctty.c [FORMATTING] Remove trailing whitespace. Addendum to 34593d93. 2021-09-13 03:52:22 +02:00
date.c [CMD] Fix missing/misplaced newlines at end of displayed errors and prompts. 2023-11-16 17:06:40 +01:00
del.c [CMD] Fix the ErrorMessage() function. 2020-05-18 02:21:56 +02:00
delay.c Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
dir.c [CMD][SDK][WINSRV] DIR command: Consider double-width characters (#5442) 2023-07-17 07:03:22 +09:00
dirstack.c [CMD] Add missing memory allocation NULL checks (#161). CORE-8304 2018-08-21 14:02:24 +02:00
echo.c Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
error.c [CMD] Use pointers to const strings in error functions, where applicable. 2020-09-13 22:50:09 +02:00
filecomp.c [CMD] Fix a typo in filename completion (#3293) 2020-10-11 21:57:08 +02:00
files.txt Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
for.c [CMD] FOR: Additional Windows' CMD compatibility "fixes" for FOR /F token parsing command. 2020-09-21 03:31:01 +02:00
free.c Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
goto.c [CMD] CALL: Fix the implementation of the CALL command, make it more compatible with Windows' CMD. 2020-09-27 19:05:23 +02:00
history.c [CMD] HISTORY: Fix command output (missing linefeed) (#3205) 2020-09-18 00:17:08 +02:00
history.txt Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
if.c [CMD] IF: Fix x64 warning C4267. 2020-09-21 03:31:01 +02:00
internal.c [CMD] Make the command-line parser more compatible with Windows' CMD one. 2020-09-27 02:27:15 +02:00
license.txt Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
locale.c [CMD] Tweak comment for %TIME% format (#5499) 2023-08-04 01:34:24 +03:00
memory.c Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
misc.c [CMD] Fix missing/misplaced newlines at end of displayed errors and prompts. 2023-11-16 17:06:40 +01:00
mklink.c Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
move.c [CMD] MOVE: Set the errorlevel on failure. 2020-08-19 20:36:07 +02:00
msgbox.c Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
parser.c [CMD] CALL: Fix the implementation of the CALL command, make it more compatible with Windows' CMD. 2020-09-27 19:05:23 +02:00
path.c [CMD] Change ERRORLEVEL behaviour for commands ASSOC, PATH, PROMPT and SET. 2020-09-23 00:22:46 +02:00
pause.c [CMD] Print a newline after the interactive 'pause' command message finishes to run. 2018-06-03 02:36:32 +02:00
precomp.h [CMD] Use string-safe call to build the new console title (possibly truncated, we don't care), avoiding any buffer overflow. Caught by David Quintana. 2018-05-20 19:57:43 +02:00
prompt.c [CMD] Change ERRORLEVEL behaviour for commands ASSOC, PATH, PROMPT and SET. 2020-09-23 00:22:46 +02:00
readme.txt Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
readme2.txt [FORMATTING] Remove trailing whitespace. Addendum to 34593d93. 2021-09-13 03:52:22 +02:00
redir.c Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
ren.c [CMD] Fix missing/misplaced newlines at end of displayed errors and prompts. 2023-11-16 17:06:40 +01:00
ren.txt [FORMATTING] Remove trailing whitespace. Addendum to 34593d93. 2021-09-13 03:52:22 +02:00
replace.c [CMD] REPLACE: Fix a memory leak. 2020-08-19 20:36:13 +02:00
resource.h [CMD] Fix missing/misplaced newlines at end of displayed errors and prompts. 2023-11-16 17:06:40 +01:00
screen.c Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
set.c [CMD] SET: Diverse fixes for the arithmetic-expression parser (/A option). 2020-09-23 00:22:48 +02:00
setlocal.c [CMD] SETLOCAL / ENDLOCAL: Save / Restore as well the current drive and current directory. 2020-08-19 20:36:13 +02:00
shift.c [CMD] SHIFT: Use _istdigit(). 2020-09-13 22:50:10 +02:00
start.c [CMD] Fix missing/misplaced newlines at end of displayed errors and prompts. 2023-11-16 17:06:40 +01:00
strtoclr.c Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
time.c [CMD] Fix missing/misplaced newlines at end of displayed errors and prompts. 2023-11-16 17:06:40 +01:00
timer.c [REACTOS] Add '\n' to debug logs 2022-05-04 03:28:38 +03:00
title.c [CMD] Improve the situations when the console title can be changed. 2018-06-03 02:36:39 +02:00
todo.txt [CMD] todo.txt: Remove some points that have already been implemented since ages. 2020-08-19 20:35:52 +02:00
type.c [CMD] Fix missing/misplaced newlines at end of displayed errors and prompts. 2023-11-16 17:06:40 +01:00
ver.c Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
verify.c Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
vol.c [CMD] Fix the ErrorMessage() function. 2020-05-18 02:21:56 +02:00
wcwidth.c [CMD][SDK][WINSRV] DIR command: Consider double-width characters (#5442) 2023-07-17 07:03:22 +09:00
where.c [CMD] Use GetFullPathName instead of copying buffers when resolving executable names 2021-06-09 11:23:39 +02:00
window.c [CMD] Fix missing/misplaced newlines at end of displayed errors and prompts. 2023-11-16 17:06:40 +01:00

ReactOS command line interpreter CMD
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The ReactOS command line interpreter CMD is derived from FreeCOM, the
FreeDOS command line interpreter.

We are shooting mainly to be just like 2000/XP cmd.exe.  They are very close and only a small number(none that i can recall off the top of my head, so maybe 0) differences have been found between those two.  It has been reported that ROS cmd.exe does not work on nt4 because of a missing api.  I'm hoping to fix this at some point.


Compiling
~~~~~~~~~
ROS cmd used to depend on __REACTOS__ to provide two different ways to build cmd.  There is still code left in it for this but...  The __REACTOS__ = 0 has not been develped, maintained.  And therefore it does not even compile anymore.  __REACTOS__ = 1 works fine on both windows(nt). and someday i plan to remove all the __REACTOS__ = 0.

Using rbuild you can compile cmd separately by "make cmd_install".  Also you can compile cmd using MSVC 6 and soon 7/8 hopefully.


Current Features
~~~~~~~~~~~~~~~~
 - environment handling with prompt and path support.
 - directory utilities.
 - command-line history with doskey-like features.
 - batch file processing.
 - input/output redirection and piping.
 - alias support.
 - filename completion (use TAB), both Bash and Windows-CMD style.


Credits
~~~~~~~
FreeDOS developers:
   normat@rpi.edu (Tim Norman)
   mrains@apanix.apana.org.au (Matt Rains)
   ejeffrey@iastate.edu (Evan Jeffrey)
   Steffen.Kaiser@Informatik.TU-Chemnitz.DE (Steffen Kaiser)
   Svante Frey (sfrey@kuai.se)
   Oliver Mueller (ogmueller@t-online.de)
   Aaron Kaufman (morgan@remarque.berkeley.edu)
   Marc Desrochers (bitzero@hotmail.com)
   Rob Lake (rlake@cs.mun.ca)
   John P. Price <linux-guru@gcfl.net>
   Hans B Pufal <hansp@digiweb.com>

ReactOS developers:
   Eric Kohl
   Emanuele Aliberti <ea@iol.it>
   Paolo Pantaleo <paolopan@freemail.it>
   Brandon Turner <turnerb7@msu.edu>


Bugs
~~~~
There are still many bugs ;)
Please report bugs to ReactOS team <ros-dev@reactos.org> or to JIRA at www.reactos.org