Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!uunet!mcsun!ukc!cam-cl!news From: nbvs@cl.cam.ac.uk (Nicko van Someren) Newsgroups: comp.sys.acorn Subject: Re: possible bug in filer_opendir Keywords: bug filer_opendir expansion Message-ID: <1991Jun1.113523.11196@cl.cam.ac.uk> Date: 1 Jun 91 11:35:23 GMT Article-I.D.: cl.1991Jun1.113523.11196 References: Reply-To: nbvs@cl.cam.ac.uk (Nicko van Someren) Organization: U of Cambridge Comp Lab, UK Lines: 44 In article gilbertd@p4.cs.man.ac.uk (Dave Gilbert) writes: > >Someone has asked me to post the following article - here it is with >his email address - please post replies to this group or mail him - not me. > >Simon Levitt >Subject: Re. Filer_OpenDir > > Set Directory$Dir adfs::14_45_Fri.$ > Filer_OpenDir .Directory > > won't work whereas > > Filer_OpenDir adfs::14_45_Fri.$.Directory > > does!!!! > >Am I doing something very stupid or is the problem in Filer_OpenDir >command??? Each command provided by a module has a byte full of 8 flags to specify if wether each of the first 8 parameters get passed through the GSTrans code to expand things like system variables. Acorn have not set the flag for the 1st parameter of Filer_OpenDir so you can not pass it a system variable for the directory name. The following code can be assembled and saved with type "Utility" as the command Do MOV R0,R1 MOV R1,R12 MOV R2,#&100 SWI "OS_GSTrans" MOVVC R0,R1 SWIVC "OS_CLI" MOV PC,R14 Then at least you can type things like 'Do Filer_OpenDir ' and the GSTrans will be done by the Do before the parameters get passed on to the Filer_OpenDir. Sorry to repeat myself by posting this code again but I copuld not find the original article to reffer to. +-----------------------------------------------------------------------------+ | Nicko van Someren, nbvs@cl.cam.ac.uk, (44) 223 358707 or (44) 860 498903 | +-----------------------------------------------------------------------------+