home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!bnr.co.uk!uknet!mucs!m1!coxjp
- From: coxjp@cs.man.ac.uk (Jonathan Cox)
- Newsgroups: comp.sys.acorn.tech
- Subject: Find the root path under RiscOS 3.1
- Message-ID: <COXJP.92Dec15150754@beluga.cs.man.ac.uk>
- Date: 15 Dec 92 15:07:54 GMT
- Sender: news@cs.man.ac.uk
- Distribution: comp
- Organization: Department of Computer Science, University of Manchester
- Lines: 32
-
- 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
-