Hi Aitor,

Before your program's first byte at CS:100h is executed, the rest of the 
command line (starting with the first argument) is paced at address 
CS:80h, zero terminated. That is all you get is using assembler. The 
argc[0] didn't work in old versions of DOS so it must be stored 
elsewhere and have a function to get it. It is not guaranteed (between 
all DOS flavours) that there will not be extra spaces at the beguining 
in case the user puts more then one space after the program name. You 
see then some limitations: the line cannot be more then 127 bytes and 
"*" are not expanded.

BTW, this is exactly like CP/M (8 bits)

Cheers,
Alain

Aitor Santamaría escreveu:
> Hello Blair,
> 
> I am very happy to see your code moving towards LFN support, many thanks!
> 
> There's something I've always been concerned about, which is how is
> the "" stuff supported in MS-DOS 7.x+?
> Forgive me for my ignorance, but In particular, who parses command
> line? who turns a zero-terminated strings into argv[]? I work everyday
> with Unix, and there it seems that it is the shell itself which is
> able to manage that, but for DOS I always thought it was the program's
> RTL which was supposed to do it.
> If I am wrong, and it's COMMAND's task, have you ever planned to add
> support for it?
> 
> Aitor


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

Reply via email to