🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.acorn.tech
3 messages
3 total messages Started by Jonathan Cox Tue, 15 Dec 1992 15:07
Find the root path under RiscOS 3.1
#648
Author: Jonathan Cox
Date: Tue, 15 Dec 1992 15:07
32 lines
1343 bytes
Some time ago somebody posted something about finding the URD or CSD from the
fileswitch system variables under RiscOS 3.1.  It was something like:-

<FileSwitch$<FileSwitch$CurrentFilingSystem>$URD>

Now if you try to use this to set another system variable to the root path,
with a command such as:-

set r <FileSwitch$CurrentFilingSystem>:<FileSwitch$<FileSwitch$CurrentFilingSystem>$URD>

you get

ADFS:$URD>

as GSTrans is not interpreting the nested angle brackets correctly.

The only solution I can come up with is:-

set r FileSwitch$<FileSwitch$CurrentFilingSystem>$URD
seteval r <r>
set r <FileSwitch$CurrentFilingSystem>:<r>

Is there a better way?

Jon.


--
Jonathan Cox.                              Email coxjp@cs.man.ac.uk
IT 301, Department of Computer Science,
University of Manchester,                  Tel: (+44) (0)61-275-6270
Manchester.  M13 9PL.  England.            Fax: (+44) (0)61-275-6280
Re: Find the root path under RiscOS 3.1
#692
Author: Denis Howe
Date: Fri, 18 Dec 1992 14:16
31 lines
1514 bytes
In article <COXJP.92Dec15150754@beluga.cs.man.ac.uk>
coxjp@cs.man.ac.uk (Jonathan Cox) wrote:

>Distribution: comp
Get your news software fixed!

>Some time ago somebody posted something about finding the URD or CSD
>from the fileswitch system variables under RiscOS 3.1.

Me and others.

>The only solution I can come up with is:-
>
>set r FileSwitch$<FileSwitch$CurrentFilingSystem>$URD
>seteval r <r>
>set r <FileSwitch$CurrentFilingSystem>:<r>
>
>Is there a better way?

I assume you could use Owen Smith's suggestion of OS_FSControl 37
(canonicalise name) on "$" for this.  If you want to do it all in CLI
commands then your solution is probably as good as my:

Set FS <FileSwitch$CurrentFilingSystem>
SetEval CSD "<FS>:"+FileSwitch$<FS>$CSD

(or replace CSD with URD) though, as I said, the first line is not
necessary so you could do it in one (long) command.
--
Denis Howe <dbh@doc.ic.ac.uk>
So Biggs, you're the idiot who bought all these IBM PCs.  You're fired!
Re: Find the root path under RiscOS 3.1
#694
Author: Denis Howe
Date: Fri, 18 Dec 1992 14:17
31 lines
1527 bytes
In article <COXJP.92Dec15150754@beluga.cs.man.ac.uk>
coxjp@cs.man.ac.uk (Jonathan Cox) wrote:

>Distribution: comp
Get your news software fixed!

>Some time ago somebody posted something about finding the URD or CSD
>from the fileswitch system variables under RiscOS 3.1.

Me and others.

>The only solution I can come up with is:-
>
>set r FileSwitch$<FileSwitch$CurrentFilingSystem>$URD
>seteval r <r>
>set r <FileSwitch$CurrentFilingSystem>:<r>
>
>Is there a better way?

I assume you could use Owen Smith's suggestion of OS_FSControl 37
(canonicalise name) on "$" for this.  If you want to do it all in CLI
commands then your solution is probably as good as my:

Set FS <FileSwitch$CurrentFilingSystem>
SetEval CSD "<FS>:"+FileSwitch$<FS>$CSD

(or replace CSD with URD) though, as I said, the first line is not
necessary so you could do it in one (long) command.
--
Denis Howe <dbh@doc.ic.ac.uk>
So Biggs, you're the idiot who bought all these IBM PCs.  You're fired!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads