Subversion Repositories SvarDOS

Rev

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

Rev 1846 Rev 1848
Line 1088... Line 1088...
1088
  lastexitcode = MK_FP(rmod->rmodseg, RMOD_OFFSET_LEXITCODE);
1088
  lastexitcode = MK_FP(rmod->rmodseg, RMOD_OFFSET_LEXITCODE);
1089
 
1089
 
1090
  /* make COMSPEC point to myself */
1090
  /* make COMSPEC point to myself */
1091
  set_comspec_to_self(*rmod_envseg);
1091
  set_comspec_to_self(*rmod_envseg);
1092
 
1092
 
-
 
1093
  /* update rmod's ptr to COMSPEC so it is always up to date - this needs to be
-
 
1094
   * done early so it is up to date even if this instance of SvarCOM dies
-
 
1095
   * early (for example because of a CTRL+C event) */
-
 
1096
  rmod_updatecomspecptr(rmod->rmodseg, *rmod_envseg);
-
 
1097
 
1093
  /* on /P check for the presence of AUTOEXEC.BAT and execute it if found,
1098
  /* on /P check for the presence of AUTOEXEC.BAT and execute it if found,
1094
   * but skip this check if /D was also passed */
1099
   * but skip this check if /D was also passed */
1095
  if ((cfg.flags & (FLAG_PERMANENT | FLAG_SKIP_AUTOEXEC)) == FLAG_PERMANENT) {
1100
  if ((cfg.flags & (FLAG_PERMANENT | FLAG_SKIP_AUTOEXEC)) == FLAG_PERMANENT) {
1096
    if (file_getattr("AUTOEXEC.BAT") >= 0) cfg.execcmd = "AUTOEXEC.BAT";
1101
    if (file_getattr("AUTOEXEC.BAT") >= 0) cfg.execcmd = "AUTOEXEC.BAT";
1097
  }
1102
  }
Line 1222... Line 1227...
1222
        case '\t':
1227
        case '\t':
1223
          cmdline[i] = ' ';
1228
          cmdline[i] = ' ';
1224
      }
1229
      }
1225
    }
1230
    }
1226
 
1231
 
1227
    /* update rmod's ptr to COMSPEC so it is always up to date */
-
 
1228
    rmod_updatecomspecptr(rmod->rmodseg, *rmod_envseg);
-
 
1229
 
-
 
1230
    /* handle redirections (if any) */
1232
    /* handle redirections (if any) */
1231
    i = redir_parsecmd(&redirprops, cmdline, rmod->awaitingcmd, *rmod_envseg);
1233
    i = redir_parsecmd(&redirprops, cmdline, rmod->awaitingcmd, *rmod_envseg);
1232
    if (i != 0) {
1234
    if (i != 0) {
1233
      nls_outputnl_doserr(i);
1235
      nls_outputnl_doserr(i);
1234
      rmod->awaitingcmd[0] = 0;
1236
      rmod->awaitingcmd[0] = 0;