fixing up INIT and loadup files #75
Replies: 3 comments
-
For saving an image, the C code says:
I haven't tracked down where it decides that {DSK} is exactly your login home directory -- I do know that it's not based on $HOME because changing HOME doesn't affect it. |
Beta Was this translation helpful? Give feedback.
-
SAVEVM vs SYSOUT vs MAKESYS: these three Interlisp functions (should) call the same Maiko subr to save the VM. Let's decide as a group what things SHOULD do in 2020 with GitHub and Docker and WSL etc. |
Beta Was this translation helpful? Give feedback.
-
With respect to Henry’s lispusers/CD package, that has some bells and whistles, but I think a lot of the Unix stuff (../ ~/) is now built-in to CNDIR, which the cd command invokes.
… On Dec 9, 2020, at 12:28 PM, Larry Masinter ***@***.***> wrote:
@rmkaplan <https://github.com/rmkaplan>
There is an environment variable LOGINDIR that tells medley where you want internal (CNDIR) or cd to go by default and where medley thinks you are initially connected to (which is distinct from your shell connected directory at the time your start up medley). By that also says where your personal greeting file is (and your personal greeting file could then redefine that variable for later cd/CNDIR defaulting). I presume that Larry’s runmedley defaults that variable if it isn’t already defined in the environment.
So, that’s how it knows where your personal greeting file is, and what cd with no arguments goes to. I think all the other file operations go to the (medley-internal, not the shell) connected directory (e.g. after cd foo or (CNDIR ‘foo), (SYSOUT ‘X.SYSOUT) will go to foo/X.sysout)).
I have never used CHDIR, didn’t know it existed. Seems to be changing the connected directory in a shell, but I’m not sure which shell it is or why one would want to do that. Can someone explain?
The location of the lisp.virtualmen is determined separately, defaults to my Mac home directory (/Users/kaplan).
@nbriggs <https://github.com/nbriggs>
Underneath the Lisp stuff (which I haven't looked at in detail yet), there's the whole maze of twisty little passages in {dsk} vs {unix}.
At the lisp level there's the lispusers/CD package, which is how Henry Thompson thought things should work between 1982-88, and VANILLA-INIT and GENERIC-INIT which also adjust things to how Stan Lanning thought it should work when he was mostly using it as a common lisp environment.
@nbriggs <https://github.com/nbriggs>
The C code looks for $HOME/lisp.virtualmem on startup if you're running under X (or ~/lisp.virtualmem if you're using a raw display device (!)) if there is: no explicit sysout name given on the command line, or LDESRCESYSOUT or LDESOURCESYSOUT environment variable in order, note spelling difference).
For saving an image, the C code says:
/************************************************************************/
/* */
/* v m e m _ s a v e 0 */
/* */
/* Implements the VMEMSAVE subr. Write out the current lisp */
/* lisp image to the specified file. If the sysout file-name */
/* is explicitly specified, the directory on which the file */
/* resides is exactly (?) an existing directory. This is */
/* guaranteed by the Lisp code, \MAIKO.CHECKFREEPAGE in LLFAULT. */
/* */
/* If the file argument is nill, the default sysout-file name, */
/* "~/lisp.virtualmem", is used, subject to override by the */
/* LDEDESTSYSOUT UNIX-environment variable. */
/* */
I haven't tracked down where it decides that {DSK} is exactly your login home directory -- I do know that it's not based on $HOME because changing HOME doesn't affect it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <https://github.com/Interlisp/medley/issues/75#issuecomment-742028626>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AQSTUJIZM6VPUWI3BY77YVTST7MVPANCNFSM4USKSMZQ>.
|
Beta Was this translation helpful? Give feedback.
-
this issue is an after-the-fact placeholder for issues I was working around INITfiles and loadup scripts.
not all resolved per @Anzus @nbriggs @rmkaplan (adopt INIT.MAIKO as a model):
On Dec 6, 2020, at 5:31 PM, Ron Kaplan ron.kaplan@post.harvard.edu wrote:
Yes, the version that we put out there should match where we expect the fonts to be installed.
I don't believe that "authentication" works, SAVEVM is still possibly OK. The DST start/stop dates are wrong, as far as I know (we can find what they should be, though.) The DEFAULTOSTYPE is good, and the short and long hostnames are things that a user might want to set up, so they should at least be mentioned though they're unlikely to be set to meaningful values in the distributed file.
Beta Was this translation helpful? Give feedback.
All reactions