[ros-bugs] [Bug 2659] enhance cmd.exe to work like XP's cmd.exe
ReactOS.Bugzilla at www.reactos.org
ReactOS.Bugzilla at www.reactos.org
Sat Oct 6 00:47:36 CEST 2007
http://www.reactos.org/bugzilla/show_bug.cgi?id=2659
jmichae3 <jmichae3 at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
--- Comment #3 from jmichae3 <jmichae3 at yahoo.com> 2007-10-06 00:47:36 CET ---
cmd shell as it stands is woefully inadequate. there is a long long list of
things that are yet to be implemented. see attachment for what needs to be
implemented.
for instance, all of the programming is missing.
SET /A expression
does arithmetic expressions.
assignment operators for SET such as <<= >>= |= &= ^= -= += %= /= *=
are missing (and I don't know if = is missing)
unary operators ! ~ - are missing
arithmetic operators * / % + - are missing
logical shift operators << >> are missing
bitwise and and or exclusive-or & | ^ are missing
expression separator , is missing
SET V should show all the variables that begin with V
any use of local or modulus operators require the expression to be in quotes.
non-numeric strings are trated as variables which are expanded into numbers
before using them. if var is specified but not defined, zero is used.
variable S substitution of all occurrances of str1 with str2
%S:str1=str2%
%S:~10,5%
would expand the S variable, and then use only the 5
characters that begin at the 11th (offset 10) character of the expanded
result. If the length is not specified, then defaults to
remainder of the variable value. If either number (offset or length) is
negative, then the number used is the length of the environment variable
value added to the offset or length specified.
%PATH:~-10%
would extract the last 10 characters of the PATH variable.
%PATH:~0,-2%
would extract all but the last 2 characters of the PATH variable.
gotta go now.
--
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the Ros-bugs
mailing list