parameters - problem with echo
"Andreas K. Foerster" <[email protected]> Wed, 13 Nov 2002 06:56:44 +0100
| Newsgroups | gmane.os.freedos.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello, I had a lot of trouble with my zecho tool, which is due to a very different handling of parameters between FreeDOS and MsDos. Zecho is somewhat like the Dos-command echo. (zecho is part of the package zdef, which I rerelease soon) It took me long to find out, what caused this trouble. Here is a simple summary. I don't want to complain, I just want to show, that there are still differences, and that they can cause trouble. How both systems handle parameters: 1. C:\command/parameter MsDos: "/parameter" FreeDos: "/parameter" 2. C:\command parameter MsDos: " parameter" FreeDOS: "parameter" 3. C:\command parameter MsDos: " parameter" FreeDOS: "parameter" In case 1 both systems react the same, but that's a rare case. Case 2 caused big trouble with my tool: Because of the behaviour of MsDos, I decided to strip the first character of the parameter, which is of course wrong for FreeDOS. (I didn't really recognize this as reason for my problem first, because the first interpreted character of zecho is normally not to be printed out) Case 3 still causes trouble, because I don't want my text to be left-aligned. This really looks strange with hebrew texts! (I found a workaround for zecho, but not yet for normal echo) -- Tschuess Andreas