#2 Command line processing after +startup

v15.53
closed-works-for-me
5
2004-12-14
2003-04-09
No

A command line of "winpop11 +startup somefile.p"
should load "somefile.p" after restoring the saved
image "startup.psv". Instead, the base window is opened
but no VED editor appears, possibly because the load
i/o operation is blocked?

Discussion

  • Jeffrey T Best

    Jeffrey T Best - 2003-04-11
    • assigned_to: nobody --> jeffreytbest
    • status: open --> open-accepted
     
  • Jeffrey T Best

    Jeffrey T Best - 2004-12-14

    Logged In: YES
    user_id=715638

    20041214 jtb Tried this with a pop-11 file containing errors
    and winpop11 clearly tries to compile the file, reporting
    the errors in output.p. Tried this with a pop-11 file that
    works, and the file is just loaded in VED.

    This is with Roger's startup-processing mechanism in init.p.

    if ispair(poparglist0) then
    lvars basename = sys_fname_nam(fast_front(poparglist0)),
    arglist = false,
    arg;
    if basename = 'winpop11' then
    fast_back(poparglist0) -> arglist;
    ;;; skip saved image startup args
    while ispair(arglist) do
    fast_front(arglist) -> arg;
    quitunless(datalength(arg) > 0 and
    fast_subscrs(1,arg) == `+`);
    fast_back(arglist) -> arglist;
    endwhile;
    ;;; save rest as poparglist
    arglist -> poparglist;
    procedure(old);
    lvars old;
    vedinput(sys_process_poparg1(%pop11_compile,
    trycompile, '.p'%));
    old -> vedprocesstrap;
    old();
    endprocedure(%vedprocesstrap%) -> vedprocesstrap;
    endif;
    endif;

     
  • Jeffrey T Best

    Jeffrey T Best - 2004-12-14
    • status: open-accepted --> closed-works-for-me
     

Log in to post a comment.