-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use INFILEP to get unambiguous path in INTERPRET.REM.CM #1963
Conversation
…/GREETFILE" is treated as "home>matt>GREETFILE". OPENSTREAM in INTERPRET.REM.CM tries to open that effectively as relative to (CNDIR T). This is seen when resuming from a saved lisp.virtualmem.
I tried this using macOS. While connected to
The result was a normal input stream on I don't think |
For background, in the Alto days (Alto Executive from the Alto OS Reference Manual, 1977):
I think that our current problem got started when we switched from having separate "Rem.Cm" file and site init file to overloading LDEINIT for naming both Rem.Cm and site init files. Piecing the story together from my fragmentary knowledge - if Lisp wanted to chain to another program (or itself), it could append to (or overwrite) Rem.Cm with "Lisp; (something interesting to Lisp)" with the expectation that the Executive would start "Lisp" and stuff the remaining command line back into Rem.Cm -- Lisp was set up to read an appropriate part of the Rem.Cm contents, and being a good citizen, remove it, and let the Alto executive see the leftovers. Interpreting Rem.Cm, if it existed and contained anything of interest to Lisp, was completely separate from the site and user greetfiles. I think that interpreting Rem.Cm happens at a different time in the startup than the processing of site and user greeting. Linking the two names together means that you get attempts from both places in the startup to do something with the site init file.
In the same timeframe, the INTEPRET.REM.CM looked like:
|
@hjellinek I discovered this when restarting Medley from a |
It just occurred to me that this was "familiar". |
This is how it used to work:
So it saves then replaces your Init.Lisp with Init.nogreet, fires up the Lisp sysout, where the Rem.Cm will contain the "..." commands to do what needs to be done... which is to put back the saved copy of the site init file and then load the Lisp file to load full from lisp, etc. |
Superseded by #2027 |
This is necessary because a path of the form "/home/matt/GREETFILE" is treated as "home>matt>GREETFILE".
OPENSTREAM in INTERPRET.REM.CM tries to open that effectively as relative to (CNDIR T).
This is seen when resuming from a saved lisp.virtualmem.