[Coco] How to permanently change NitrOS-9 directories within a script?

Bill Pierce ooogalapasooo at aol.com
Wed May 8 20:27:38 EDT 2019


Robert, when you run a script, you are also starting a temporary shell, so when the script ends, so does the shell and anything it created (chd, chx etc).
In Shell+, there is a cmd, "PATH", which allows you to not only set the dirs, but to set multiple cmds dirs, but again, this will not work as a script as it's a shell cmd and that shell dies with the script.
There is a "sysgo" (formally "cc3go") by Bob Devries that I use which checks the system dir (on startup) for a config file in which you can set dirs with the "PATH" cmd. since this is done from sysgo, it's run from the first (immortal) shell.
That particular sysgo is in the repo as "sysgo_bd.asm" and "I think" on the disks in the cmds as "sysgo_bd". Just swap it with sysgo and create your "config.os9" file in /dd/sys and you got it.
Warning, I think the "config.os9" file can only be one line so all cmds must fit in that line. The original "cc3go" version of this on RTSI and has the full documentation
 
 
 
-----Original Message-----
From: Robert Gault <robert.gault at att.net>
To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
Sent: Wed, May 8, 2019 6:51 pm
Subject: [Coco] How to permanently change NitrOS-9 directories within a script?

Changing directories with chd, cd, chx, cx at the keyboard results in a permanent change. Using 
these commands within a script, such as startup, will give you a temporary change until the script 
ends. I'm sure at one time I knew how to use these commands within a script so that the directory 
changes did not revert when the script finished but I can't remember how nor find any discussion on 
the subject.

Does anyone know how to do this?

Robert

-- 
Coco mailing list
Coco at maltedmedia.com
https://pairlist5.pair.net/mailman/listinfo/coco


More information about the Coco mailing list