mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 07:26:47 +00:00
17e094cd34
- Detect whether a division by zero is done, and fail if so. - Detect whether an invalid number is provided: * If _tcstol() fails with errno == ERANGE, we've got an overflow or underflow. * If the next character where _tcstol() is not a whitespace but is a character compatible with the first character of an identifier, the number is invalid. - Add + to the list of existing unary operators (!,~,-), and parse them where many of these are present. Indeed, expressions like: +3, -+-+3, !!-+3 (or with other unary ops, etc.) are valid. - Operators constituted of more than one characters, can contain whitespace separating their constituting characters. Thus, "a + = 3" is equivalent to "a += 3" (and the same for -=, *=, /=, %=, &=, |= and ^=), and "a < < 3" is equivalent to "a << 3" (and the same for >>, <<= and >>=). - After evaluating everything, if unparsed data remains, fail and bail out. - Return Windows' CMD-compatible errorlevels. See https://ss64.com/nt/set.html for more details. Fixes some cmd_winetests. |
||
---|---|---|
.. | ||
lang | ||
res | ||
alias.c | ||
assoc.c | ||
batch.c | ||
batch.h | ||
beep.c | ||
call.c | ||
choice.c | ||
cls.c | ||
CMakeLists.txt | ||
cmd.c | ||
cmd.h | ||
cmd.rc | ||
cmddbg.c | ||
cmddbg.h | ||
cmdinput.c | ||
cmdtable.c | ||
cmdver.h | ||
color.c | ||
config.h | ||
console.c | ||
console.h | ||
copy.c | ||
ctty.c | ||
date.c | ||
del.c | ||
delay.c | ||
dir.c | ||
dirstack.c | ||
echo.c | ||
error.c | ||
filecomp.c | ||
files.txt | ||
for.c | ||
free.c | ||
goto.c | ||
history.c | ||
history.txt | ||
if.c | ||
internal.c | ||
license.txt | ||
locale.c | ||
memory.c | ||
misc.c | ||
mklink.c | ||
move.c | ||
msgbox.c | ||
parser.c | ||
path.c | ||
pause.c | ||
precomp.h | ||
prompt.c | ||
readme.txt | ||
readme2.txt | ||
redir.c | ||
ren.c | ||
ren.txt | ||
replace.c | ||
resource.h | ||
screen.c | ||
set.c | ||
setlocal.c | ||
shift.c | ||
start.c | ||
strtoclr.c | ||
time.c | ||
timer.c | ||
title.c | ||
todo.txt | ||
type.c | ||
ver.c | ||
verify.c | ||
vol.c | ||
where.c | ||
window.c |
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