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

Bill Pierce ooogalapasooo at aol.com
Sun May 12 12:07:27 EDT 2019


Wayne, the only problem is that anything forked from a shell, becomes a child of that shell. And the problem of everything created with the shell, dying with it still applies.
 
 
 
-----Original Message-----
From: Wayne Campbell <asa.rand at gmail.com>
To: CoCoList <coco at maltedmedia.com>
Sent: Sun, May 12, 2019 9:59 am
Subject: Re: [Coco] How to permanently change NitrOS-9 directories within a script?

Maybe I'm confusing it with Basic09's SHELL keyword. I just thought I
remembered being able to run a command from a shell forked from within a
script that would execute the command and return you to the script, but
making whatever change you wanted without it reverting back. Guess I am
misremembering.

Wayne


On Sun, May 12, 2019, 6:42 AM Robert Gault <robert.gault at att.net> wrote:

> Wayne,
>
> I think you mean something like  shell i=/w2&
> which will start a new shell in a specific window leaving you in the
> current shell and screen.
>
> Robert
>
> Wayne Campbell wrote:
> > Been awhile, but isn't there a shell operator in the shell script that
> > allows you to fork another shell for the command that separates it from
> the
> > script?
> >
> > Wayne
> >
> >
> > On Sat, May 11, 2019, 9:35 PM Joel Rees <joel.rees at gmail.com> wrote:
> >
> >> Do OS-9 shells have an equivalent to "export"?
> >>
> >> 2019年5月9日(木) 7:51 Robert Gault <robert.gault at att.net>:
> >>
> >>> 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
> >>
> >
>
> --
> 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