Hi!
25-Авг-2006 00:00 [EMAIL PROTECTED] (Diego Rodriguez) wrote to
[email protected]:
>> >> Well, MS-command.com also doesn't strips trailing slash:
DR> I used the following program:
[...]
DR> ... and, yes, if you use FreeCOM the trailing backslash appears even
DR> under PC DOS.
Let test your program:
>type test.c
#include <stdio.h>
#include <dos.h>
int truename (char *dst, const char *src) {
union REGS r; struct SREGS seg;
seg.ds = FP_SEG (src); r.x.si = FP_OFF (src);
seg.es = FP_SEG (dst); r.x.di = FP_OFF (dst);
r.h.ah = 0x60; intdosx (&r, &r, &seg);
return r.x.cflag ? r.x.ax : 0;
}
void main (int argc, const char *argv []) {
char buf [128];
while (--argc) {
int errcode = truename (buf, *++argv);
if (errcode) printf ("error: truename (errocode = %u)\n", errcode);
else printf ("%s = %s\n", *argv, buf);
} }
>bcc test.c
Borland C++ Version 3.1 Copyright (c) 1992 Borland International
>md test
>test tst test test\
tst = ...\TST
test = ...\TEST
test\ = ...\TEST\
As you may see, MS-DOS does NOT strips trailing slash. So what else you
expect from FreeDOS? Remember: FreeDOS clones MS-DOS, not DR-DOS. Though, I
suggest, that DR-DOS in given case should give similar results.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel