Post Reply 
Plus42 Equations, Preview Release
05-07-2022, 03:11 PM (This post was last modified: 05-07-2022 03:23 PM by Thomas Okken.)
Post: #615
RE: Plus42 Equations, Preview Release
Yes, that is possible.

Since the programs aren't in the default search path – which is the current directory and its ancestors all the way to HOME – you'll have to create a PATH list in HOME. Here's how to do that:

1. Create a reference to the directory containing the programs you want to run. There are two ways to do that: CHDIR into the directory itself, and press [Shift] [..], or CHDIR into its parent, and press [Shift] [DirectoryName].
2. Use UPDIR or HOME to go to the HOME directory.
3. If PATH already exists, add the new directory reference to it: RCL "PATH" X<>Y APPEND STO "PATH", or else create a new one: NEWLIST X<>Y APPEND STO "PATH".

Now you'll be able to run all the programs in the referenced directory using XEQ, or using the CUSTOM menu, regardless of which directory you're in.

(Note that UPDIR is [..] in the DIR menu, and APPEND is mapped to the [+] key when there is a list or a string in the Y register.)

If you want to add directories to an existing PATH, you can streamline the process a bit by doing RCL "PATH" before creating the reference: if you create a reference while there is a list in the X register, the reference is automatically added to the list. Also, if you create a reference while there is a reference in the X register, the two will be combined into a list. Thus, you can assemble a list of directory references with only a few keystrokes. Once the list is complete, go back to HOME and do STO "PATH" and you're done.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Plus42 Equations, Preview Release - Thomas Okken - 05-07-2022 03:11 PM



User(s) browsing this thread: 2 Guest(s)