> A:\>if not errorlevel 4 getargs > temp.bat [Yes=ENTER, No=ESC] ? > # I needed to press ENTER twice on the line above
Yes, because the echo-ed command itself is also sent to temp.bat... Redirection combined with single-stepping has a bug. > A:\>A:\>getargs [Yes=ENTER, No=ESC] ? [Yes=ENTER, No=ESC] ? > Bad command or filename - "A:\". See above. > ... > X:\>[Yes=E\test.tmp pause Could not format your hard disk > [Yes=ENTER, No=ESC] ? > Bad command or filename - "[Yes". Strange. > X:\>if not exist C: [Yes=E\test.tmp goto format [Yes=ENTER, No=ESC] ? Oops. > X:\>[Yes=E\test.tmp goto format [Yes=ENTER, No=ESC] ? > Bad command or filename - "[Yes". Oops. > X:\>del C: [Yes=E\test.tmp [Yes=ENTER, No=ESC] ? > All files in '*.*' will be deleted ! > Are you sure (Y/N)? Y > # I answered "Y" to the question above Probably a bad idea. > # There are no files on C: - so it seems that install wasn't succesfull. I suggest that the "command [Yes=ENTER, No=ESC] ?" string itself should NOT be subjected to possible redirection. Will solve most of the problems that you mention to force that text to go to stderr. Possibly even ignoring CTTY, but at least ignoring redirection. This can be less trivial than it sounds, so as soon as somebody has a patch to implement it, I would like to see the patch before it gets used... Eric ------------------------------------------------------------------------- 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 Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel