Subversion Repositories SvarDOS

Rev

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

Rev 480 Rev 483
Line 129... Line 129...
129
          if (cmdline[i] == ':') i++; /* could be /E:size */
129
          if (cmdline[i] == ':') i++; /* could be /E:size */
130
          atous(&(cfg->envsiz), cmdline + i);
130
          atous(&(cfg->envsiz), cmdline + i);
131
          if (cfg->envsiz < 64) cfg->envsiz = 0;
131
          if (cfg->envsiz < 64) cfg->envsiz = 0;
132
          break;
132
          break;
133
 
133
 
134
        case 'p': /* permanent shell (can't exit) */
134
        case 'p': /* permanent shell (can't exit + run autoexec.bat) */
135
        case 'P':
135
        case 'P':
136
          cfg->flags |= FLAG_PERMANENT;
136
          cfg->flags |= FLAG_PERMANENT;
137
          break;
137
          break;
138
 
138
 
139
        case '?':
139
        case '?':
Line 645... Line 645...
645
    envsiz = *sizptr;
645
    envsiz = *sizptr;
646
    envsiz *= 16;
646
    envsiz *= 16;
647
    printf("rmod_inpbuff at %04X:%04X, env_seg at %04X:0000 (env_size = %u bytes)\r\n", rmod->rmodseg, RMOD_OFFSET_INPBUFF, *rmod_envseg, envsiz);
647
    printf("rmod_inpbuff at %04X:%04X, env_seg at %04X:0000 (env_size = %u bytes)\r\n", rmod->rmodseg, RMOD_OFFSET_INPBUFF, *rmod_envseg, envsiz);
648
  }*/
648
  }*/
649
 
649
 
-
 
650
  /* on /P check for the presence of AUTOEXEC.BAT and execute it if found */
-
 
651
  if (cfg.flags & FLAG_PERMANENT) {
-
 
652
    if (file_getattr("AUTOEXEC.BAT") >= 0) cfg.execcmd = "AUTOEXEC.BAT";
-
 
653
  }
-
 
654
 
650
  do {
655
  do {
651
    /* terminate previous command with a CR/LF if ECHO ON (but not during BAT processing) */
656
    /* terminate previous command with a CR/LF if ECHO ON (but not during BAT processing) */
652
    if ((rmod->flags & FLAG_ECHOFLAG) && (rmod->batfile[0] != 0)) outputnl("");
657
    if ((rmod->flags & FLAG_ECHOFLAG) && (rmod->batfile[0] == 0)) outputnl("");
653
 
658
 
654
    SKIP_NEWLINE:
659
    SKIP_NEWLINE:
655
 
660
 
656
    /* cancel any redirections that may have been set up before */
661
    /* cancel any redirections that may have been set up before */
657
    redir_revert();
662
    redir_revert();