Date: Fri, 5 Apr 1991 12:04 CST
Subject: Re: specifying paths w/variables & progs
Organization: Harvey Mudd College, Claremont, CA 91711
Lines: 28
Way back when there was a lot of talk about setting up a Work directory, so
that all the miscellaneous useful utilities could be left in the HOME
directory. Others have gone to libraries, so that their utilities were
available anywhere. Here's a simple alternative, which was touched upon in
the original post to which I am responding:
Put this program in HOME:
EXEC
\<<
PATH \-> path
\<<
HOME EVAL path EVAL
\>>
\>>
Then, make CST do all the work by storing softkey definitions such as:
{ "SEE" \<< { UTILS SEE } EXEC \>> }
This executes EXEC, which requires something to do on the stack--in this
case, a list providing the path to the utility SEE inside the HOME UTILS
sub-directory. EXEC is polite and returns you to your original directory
after executing the chosen utility, unless that utility somehow badly
crashes.
Scott.