Subversion Repositories SvarDOS

Rev

Rev 1202 | Rev 1714 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1202 Rev 1713
Line 972... Line 972...
972
  memguard_set(cmdlinebuf);
972
  memguard_set(cmdlinebuf);
973
 
973
 
974
  rmod_envseg = MK_FP(rmod->rmodseg, RMOD_OFFSET_ENVSEG);
974
  rmod_envseg = MK_FP(rmod->rmodseg, RMOD_OFFSET_ENVSEG);
975
  lastexitcode = MK_FP(rmod->rmodseg, RMOD_OFFSET_LEXITCODE);
975
  lastexitcode = MK_FP(rmod->rmodseg, RMOD_OFFSET_LEXITCODE);
976
 
976
 
977
  /* make COMPSEC point to myself */
977
  /* make COMSPEC point to myself */
978
  set_comspec_to_self(*rmod_envseg);
978
  set_comspec_to_self(*rmod_envseg);
979
 
979
 
980
  /* on /P check for the presence of AUTOEXEC.BAT and execute it if found,
980
  /* on /P check for the presence of AUTOEXEC.BAT and execute it if found,
981
   * but skip this check if /D was also passed */
981
   * but skip this check if /D was also passed */
982
  if ((cfg.flags & (FLAG_PERMANENT | FLAG_SKIP_AUTOEXEC)) == FLAG_PERMANENT) {
982
  if ((cfg.flags & (FLAG_PERMANENT | FLAG_SKIP_AUTOEXEC)) == FLAG_PERMANENT) {
Line 1108... Line 1108...
1108
        case '\t':
1108
        case '\t':
1109
          cmdline[i] = ' ';
1109
          cmdline[i] = ' ';
1110
      }
1110
      }
1111
    }
1111
    }
1112
 
1112
 
1113
    /* update rmod's ptr to COMPSPEC so it is always up to date */
1113
    /* update rmod's ptr to COMSPEC so it is always up to date */
1114
    rmod_updatecomspecptr(rmod->rmodseg, *rmod_envseg);
1114
    rmod_updatecomspecptr(rmod->rmodseg, *rmod_envseg);
1115
 
1115
 
1116
    /* handle redirections (if any) */
1116
    /* handle redirections (if any) */
1117
    i = redir_parsecmd(&redirprops, cmdline, rmod->awaitingcmd, *rmod_envseg);
1117
    i = redir_parsecmd(&redirprops, cmdline, rmod->awaitingcmd, *rmod_envseg);
1118
    if (i != 0) {
1118
    if (i != 0) {