Hi!

26-Июл-2006 04:19 [EMAIL PROTECTED] (Eric Auer) wrote to
freedos-devel@lists.sourceforge.net:

EA> data. So "echo hello > foo,bat" will write something
EA> like to foo,bat like:
EA> "echo hello > foo.bat [YES=Enter No=Esc] ?
---------------^
EA> hello " (also note the space after "hello").

     This (space) is right - see space before redirection char.
MS-command.com does same.

EA> The YES/NO etc prompt should be sent to STDERR or
EA> to CON even if redirection is active.

     There is places in FreeCOM, which execute prompting, and which outputs
to stdio:

command.c:
void parsecommandline(char *s, int redirect)
  if (tracemode) {
    printprompt();
    fputs(s, stdout);
        if(userprompt(PROMPT_YES_NO) != 1)
      return;
  }

pr_prmt.c:
void printprompt(void)
        displayPrompt(pr? pr: DEFAULT_PROMPT);

msg_prmp.c:
int userprompt(unsigned id,...)
                vprintf(fmt, ap);
        outc('\n');                /* advance to next line */

-------------------------------------------------------------------------
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

Reply via email to