Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 431 → Rev 430

/svarcom/trunk/cmd/date.c
File deleted
/svarcom/trunk/cmd/ver.c
27,7 → 27,6
*/
 
#define PVER "2021.0"
#define COPYRDATE "2021"
 
static int cmd_ver(struct cmd_funcparam *p) {
char *buff = p->BUFFER;
36,23 → 35,9
/* help screen */
if (cmd_ishlp(p)) {
outputnl("Displays the DOS version.");
outputnl("");
outputnl("ver [/about]");
return(-1);
}
 
if ((p->argc == 1) && (imatch(p->argv[0], "/about"))) {
outputnl("SvarCOM is a shell interpreter for DOS kernels compatible with MS-DOS 5+.");
outputnl("");
outputnl("This software is distributed under the terms of the MIT license.");
outputnl("Copyright (C) " COPYRDATE " Mateusz Viste");
outputnl("");
outputnl("Prace te dedykuje Milenie i Mojmirowi. Zycze wam, abyscie w dalszym zyciu");
outputnl("potrafili wlasciwie docenic wartosc czasow minionych i czerpali radosc z");
outputnl("prostych przyjemnosci dnia codziennego. Lair, jesien 2021.");
return(-1);
}
 
if (p->argc != 0) {
outputnl("Invalid parameter");
return(-1);
/svarcom/trunk/cmd.c
65,7 → 65,6
#include "cmd/chcp.c"
#include "cmd/cls.c"
#include "cmd/copy.c"
#include "cmd/date.c"
#include "cmd/del.c"
#include "cmd/vol.c" /* must be included before dir.c due to dependency */
#include "cmd/dir.c"
100,7 → 99,7
{"CLS", cmd_cls},
{"COPY", cmd_copy},
{"CTTY", cmd_notimpl},
{"DATE", cmd_date},
{"DATE", cmd_notimpl},
{"DEL", cmd_del},
{"DIR", cmd_dir},
{"ECHO", cmd_echo},
/svarcom/trunk/svarcom.txt
15,8 → 15,8
Since SvarCOM is a work-in-progress effort, it still lacks a few things:
 
- no support for pipes (eg. file.exe | more)
- no support for batch (*.BAT) files (hence no AUTOEXEC.BAT execution)
- a few internal commands missing: CALL, CTTY, GOTO, IF, LH, SHIFT
- no support for batch (*.BAT) files
- a few internal commands missing: CALL, CTTY, DATE, GOTO, IF, LH, SHIFT
 
 
Latest version available here: http://svardos.osdn.io/svarcom
32,7 → 32,6
CHCP - displays or sets the active code page number
CLS - clears the screen
COPY - copies one or more files to another location
DATE - displays or sets the system date
DEL/ERASE - deletes one or more files
DIR - displays a list of files and subdirectories in a directory
ECHO - displays messages, or turns command-echoing on or off
/svarcom/trunk/todo.txt
11,16 → 11,18
BEFORE NEXT RELEASE:
 
pipes redirections
stdout redirection should not create the output file if command fails
support for translations (single binary file in %NLSPATH%)
DATE
 
 
AT SOME LATER TIME:
IN SOME LATER FUTURE:
 
stdin redirection: command < file.txt
DIR: /A
DIR: %DIRCMD% support
DIR: /O
DIR: /S (must use multiple DTAs recursively)
DIR: /S (must use multiple DTAs)
COPY: /V
command-line variables resolution (cd %MYDIR%)
storing rmod in a buffer that can be usefully reused once rmod is installed.
28,8 → 30,6
 
"notify pending command" int support: http://www.techhelpmanual.com/741-int_2fh_ae00h__notify_pending_command.html
 
stdout redirection should not create the output file if command fails
 
when execing an external command make sure to sync local environment (or run the program with a custom environment pointer?)
 
when execing a program, make sure I use the correct PATH.. -> actually I need to parse PATH and look for matches myself for BAT support