[Coco] Nitors9 Shell+ scripting

Bob Devries devries.bob at gmail.com
Sun Aug 5 11:48:53 EDT 2007


Actually, Paul,
The -x and x are mentioned on page 6-92 of the System Command Descriptions 
of the OS9 manual. It's the last page of the Shell Description.

--
Regards, Bob Devries, Dalby, Queensland, Australia

Isaiah 50:4 The sovereign Lord has given me
the capacity to be his spokesman,
so that I know how to help the weary.

website: http://www.home.gil.com.au/~bdevasl
my blog: http://bdevries.invigorated.org/

----- Original Message ----- 
From: "Paul Fitch" <pfitchjr at bellsouth.net>
To: <coco at maltedmedia.com>
Sent: Monday, August 06, 2007 12:14 AM
Subject: Re: [Coco] Nitors9 Shell+ scripting


>> From: Robert Gault <robert.gault at worldnet.att.net>
>> Subject: Re: [Coco] Nitors9 Shell+ scripting
>> To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
>> Message-ID: <46B5D6E3.9080902 at worldnet.att.net>
>> Content-Type: text/plain; charset=us-ascii; format=flowed
>>
>> Gene Heskett wrote:
>> > On Sunday 05 August 2007, Paul Fitch wrote:
>> >
>> >>I'm looking for a primer on shell+ scripting.
>> >>
>> >>In my startup file there is the following code:
>> >>-x
>> >>chd /dd
>> >>x
>> >>
>> >>My shell+ help doesn't mention the "x" at all.  What does it do?
>> >
>> >
>> > I believe, and someone please correct me if I'm wrong, that the -x
>> > turns off the shells error exit so the script, which the
>> startup file
>> > is, does not exit if the command fails, in this case the
>> "chd /dd".
>> > Conversely, the single x turns it back on.
>> >
>>
>> That is correct. However, the script doesn't make much sense.
>> If /dd is the same drive you booted from, there can't be any
>> need for error checking and the command chd /dd serves no
>> purpose. In normal usage, /dd is either /d0 or /h0. In either
>> case where you boot from /d0 and /dd=/h0 or you boot from /h0
>> and /dd=/d0, I can't think of any good reason for that
>> setting of /dd. Just make /dd the same as the boot drive.
>>
>>
> Robert, I made a new boot disk that that has the h0_dd as the /dd.  So the
> computer boots using the floppy image, then immediately begins using the 
> HD
> for everything else.  I'm not using RGBDOS at this time, but I understand
> that when I choose to change, things will get more straight forward.
>
> I didn't add the code to the startup file, I just modified the starup file
> to iniz some extra windows and such, and there was a change to /dd/sys in
> there, prior to merging the fonts, patterns and pointer files.    Again, I
> didn't know why the -x and x were in the file in the first place, and
> couldn't find any documentation on it.  I did look at both the Level 2 and
> the Nitros9 docs and help files first before I asked anyone.
>
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco 




More information about the Coco mailing list