mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[CMD]
Fix some whitespace and misspellings (part 1/x) svn path=/trunk/; revision=59377
This commit is contained in:
parent
d3e9d462e4
commit
b067add889
4 changed files with 35 additions and 37 deletions
|
@ -3,28 +3,28 @@
|
|||
#include "resource.h"
|
||||
#include "cmdver.h"
|
||||
|
||||
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Command Processor\0"
|
||||
#define REACTOS_STR_INTERNAL_NAME "cmd\0"
|
||||
#define REACTOS_STR_ORIGINAL_FILENAME "cmd.exe\0"
|
||||
#define REACTOS_STR_ORIGINAL_COPYRIGHT "Copyright (C) 1994-1998 Tim Norman and others\0"
|
||||
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Command Processor\0"
|
||||
#define REACTOS_STR_INTERNAL_NAME "cmd\0"
|
||||
#define REACTOS_STR_ORIGINAL_FILENAME "cmd.exe\0"
|
||||
#define REACTOS_STR_ORIGINAL_COPYRIGHT "Copyright (C) 1994-1998 Tim Norman and others\0"
|
||||
#define REACTOS_STR_LEGAL_COPYRIGHT "Copyright (C) 1998-2006 Eric Kohl and others\0"
|
||||
|
||||
#include <reactos/version.rc>
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
BEGIN
|
||||
STRING_FREEDOS_DEV, " Tim Norman Matt Rains\n\
|
||||
Evan Jeffrey Steffen Kaiser\n\
|
||||
Svante Frey Oliver Mueller\n\
|
||||
Aaron Kaufman Marc Desrochers\n\
|
||||
Rob Lake John P Price\n\
|
||||
Hans B Pufal\n"
|
||||
STRING_FREEDOS_DEV, " Tim Norman Matt Rains\n\
|
||||
Evan Jeffrey Steffen Kaiser\n\
|
||||
Svante Frey Oliver Mueller\n\
|
||||
Aaron Kaufman Marc Desrochers\n\
|
||||
Rob Lake John P Price\n\
|
||||
Hans B Pufal\n"
|
||||
|
||||
STRING_REACTOS_DEV, " Eric Kohl Emanuele Aliberti\n\
|
||||
Paolo Pantaleo Phillip Susi\n\
|
||||
Sylvain Petreolle\n"
|
||||
STRING_REACTOS_DEV, " Eric Kohl Emanuele Aliberti\n\
|
||||
Paolo Pantaleo Phillip Susi\n\
|
||||
Sylvain Petreolle\n"
|
||||
END
|
||||
|
||||
1 ICON DISCARDABLE res/terminal.ico
|
||||
1 ICON DISCARDABLE res/terminal.ico
|
||||
|
||||
#include "rsrc.rc"
|
||||
|
|
|
@ -47,9 +47,7 @@ ReactOS developers:
|
|||
Brandon Turner <turnerb7@msu.edu>
|
||||
|
||||
|
||||
|
||||
Bugs
|
||||
~~~~
|
||||
There is still many bugs ;)
|
||||
There are still many bugs ;)
|
||||
Please report bugs to ReactOS team <ros-dev@reactos.org> or to JIRA at www.reactos.org
|
||||
|
||||
|
|
|
@ -47,16 +47,16 @@ dstFILE: here is stored FILE re-name(hi.txt)
|
|||
|
||||
|
||||
2)If srcPattern contains "\" then:
|
||||
-we activate bPath, since srcPattern has a path inside of it.
|
||||
-we explit the srcPattern to srcFile and srcPath.
|
||||
-Now we check the dstPattern ¿does it contain a Path?:
|
||||
-If does: we divide it in dstPath and dstFile.AND ALSO CHECK THAT dstPath and srcPath it´s the same(see syntax error).If they aren the same we launch an error.
|
||||
-If doesnt then we copy srcPath to dstPath(see #way2) and also saving dstPattern as dstFile.
|
||||
-we activate bPath, since srcPattern has a path inside of it.
|
||||
-we explit the srcPattern to srcFile and srcPath.
|
||||
-Now we check the dstPattern ¿does it contain a Path?:
|
||||
-If does: we divide it in dstPath and dstFile.AND ALSO CHECK THAT dstPath and srcPath it´s the same(see syntax error).If they aren the same we launch an error.
|
||||
-If doesnt then we copy srcPath to dstPath(see #way2) and also saving dstPattern as dstFile.
|
||||
3)If srcPattern doesnt contain "\" then:
|
||||
-srcPattern is copied in srcFile(we dont need a previous split,because it´s just a name)
|
||||
-Now we check the dstPattern ¿does it contains a Path?
|
||||
-If does: we launch an error (see syntax error 2)
|
||||
-If doesnt: we copy dstPattern to dstFile(we dont need a previous split because it´s just a name)
|
||||
-srcPattern is copied in srcFile(we dont need a previous split,because it´s just a name)
|
||||
-Now we check the dstPattern ¿does it contains a Path?
|
||||
-If does: we launch an error (see syntax error 2)
|
||||
-If doesnt: we copy dstPattern to dstFile(we dont need a previous split because it´s just a name)
|
||||
|
||||
4)Now we are entering in the do...while:
|
||||
|
||||
|
@ -74,11 +74,11 @@ If we are just renaming one file,then we dont make the while loop.The do..while
|
|||
5)Now we have to check our Boolean.
|
||||
|
||||
bPath==TRUE means that Source Argument was a Path so now we have to Join again the Path with the Name File:
|
||||
-srcFINAL: srcPath+f.cFileName
|
||||
-dstFINAL: dstPath+dstFile
|
||||
-srcFINAL: srcPath+f.cFileName
|
||||
-dstFINAL: dstPath+dstFile
|
||||
bPath==False then Souce wasn a Path an we dont need to join anything.
|
||||
-srcFINAL:f.cFileName
|
||||
-dstFINAL:dstFile
|
||||
-srcFINAL:f.cFileName
|
||||
-dstFINAL:dstFile
|
||||
|
||||
|
||||
At last we just make a MoveFile(srcFinal, dstFinal)):
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
Things to do
|
||||
~~~~~~~~~~~~
|
||||
*Implmenet Set /P
|
||||
This is pretty straight forward. When doing this make sure to take into account the way MS handles "set /A /P foo=5" compared to "set /P /A foo=5".
|
||||
*Implement Set /P
|
||||
This is pretty straightforward. When doing this, make sure to take into account the way MS handles "set /A /P foo=5" compared to "set /P /A foo=5".
|
||||
|
||||
*Compile as unicode
|
||||
Not sure what is wrong with it, put probably more then just one thing blocking this. For sure pipes break when it is compiled as unicode.
|
||||
Not sure what is wrong with it, but probably more than just one thing blocking this. For sure pipes break when it is compiled as unicode.
|
||||
|
||||
*Move.c code clean up
|
||||
It works, but it needs to be cleaned up, the code is long and overly complex for what it needs to do. Also, we can remove the hack to cover for MoveFileEx bug as it isn't a bug anymore.
|
||||
It works, but it needs to be cleaned up, the code is long and overly complex for what it needs to do. Also, we can remove the hack to cover for MoveFileEx bug as it isn't a bug anymore.
|
||||
|
||||
*If rewrite
|
||||
It works decent but looks _awful_. Very hard to maintain and/or understand what the hell is going on.
|
||||
It works decent but looks _awful_. Very hard to maintain and/or understand what the hell is going on.
|
||||
|
||||
*Remove Hardcoded buffers
|
||||
This is mostly done thanks to Greatlord(cmd.c is the hardest spot that is left). ANytime when you are handling a string that is taken from the commandline there should be no limit to the size.
|
||||
This is mostly done thanks to Greatlord (cmd.c is the hardest spot that is left). Anytime when you are handling a string that is taken from the commandline there should be no limit to the size.
|
||||
|
||||
*Implment & and &&
|
||||
*Implement & and &&
|
||||
& runs two commands no matter what.
|
||||
&& runs the 2nd command only if the first was a success
|
||||
Not sure where to put this code even
|
||||
|
|
Loading…
Reference in a new issue