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

William H. Carlin, Jr. whcarlinjr at gmail.com
Wed May 8 22:49:00 EDT 2019


If you are building your NitrOS9 from SourceForge you can also modify the SysGo asm file and tack your path to the end of line where the shell is being forked. Make sure you add a space between the shell and your path statement.  As stated below, your path must be contained to one line.

-----Original Message-----
From: Coco [mailto:coco-bounces at maltedmedia.com] On Behalf Of Bill Pierce via Coco
Sent: May 8, 2019 20:28
To: coco at maltedmedia.com
Cc: Bill Pierce <ooogalapasooo at aol.com>
Subject: Re: [Coco] How to permanently change NitrOS-9 directories within a script?

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

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



More information about the Coco mailing list