Subversion Repositories SvarDOS

Rev

Rev 1823 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1823 Rev 1824
Line 969... Line 969...
969
    rmod->version = BYTE_VERSION;
969
    rmod->version = BYTE_VERSION;
970
  } else {
970
  } else {
971
    /* printf("rmod found at %Fp\r\n", rmod); */
971
    /* printf("rmod found at %Fp\r\n", rmod); */
972
    /* if I was spawned by rmod and FLAG_EXEC_AND_QUIT is set, then I should
972
    /* if I was spawned by rmod and FLAG_EXEC_AND_QUIT is set, then I should
973
     * die asap, because the command has been executed already, so I no longer
973
     * die asap, because the command has been executed already, so I no longer
-
 
974
     * have a purpose in life, UNLESS I still have a batch file to run or
974
     * have a purpose in life */
975
     * a FOR loop to execute */
975
    if (rmod->flags & FLAG_EXEC_AND_QUIT) sayonara(rmod);
976
    if ((rmod->flags & FLAG_EXEC_AND_QUIT) && (rmod->bat == NULL) && (rmod->forloop == NULL)) {
-
 
977
      sayonara(rmod);
-
 
978
    }
976
    /* */
979
    /* */
977
    if (rmod->version != BYTE_VERSION) {
980
    if (rmod->version != BYTE_VERSION) {
978
      nls_outputnl_err(2,0);
981
      nls_outputnl_err(2,0);
979
      _asm {
982
      _asm {
980
        HALT:
983
        HALT:
Line 1018... Line 1021...
1018
    /* am I inside a FOR loop? */
1021
    /* am I inside a FOR loop? */
1019
    if (rmod->forloop) {
1022
    if (rmod->forloop) {
1020
      if (forloop_process(cmdlinebuf, rmod->forloop) != 0) {
1023
      if (forloop_process(cmdlinebuf, rmod->forloop) != 0) {
1021
        rmod_ffree(rmod->forloop);
1024
        rmod_ffree(rmod->forloop);
1022
        rmod->forloop = NULL;
1025
        rmod->forloop = NULL;
-
 
1026
        continue; /* needed so we quit if the FOR loop was ran through COMMAND/C */
1023
      } else {
1027
      } else {
1024
        /* output prompt and command on screen if echo on and command is not
1028
        /* output prompt and command on screen if echo on and command is not
1025
         * inhibiting it with the @ prefix */
1029
         * inhibiting it with the @ prefix */
1026
        if (rmod->flags & FLAG_ECHOFLAG) {
1030
        if (rmod->flags & FLAG_ECHOFLAG) {
1027
          build_and_display_prompt(BUFFER, *rmod_envseg);
1031
          build_and_display_prompt(BUFFER, *rmod_envseg);