Re: parameters - problem with echo
[email protected] Wed, 13 Nov 2002 10:28:31 +0100 (CET)
| Newsgroups | gmane.os.freedos.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 13 Nov 2002, Andreas K. Foerster wrote: Hello Andreas, this is actually a known bug. > 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 Your assumption is "of course" wrong in any shell, see this program: === T.ASM mov ah, 9 mov dx, 81h int 21h mov ax, 4c00h int 21h int 20h === It just displays the command line, hence, don't forget the trailing '$' character required by DOS-09. Best to be compiled as .COM. Now enter this on the command line of your favorite shell: C> .\T.COM=abcd$ =abcd ^^^ NO leading space! Bye, -- Steffen Kaiser The current maintainer of [email protected] http://freedos.sourceforge.net/freecom/FreeCOM.html