Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!uunet!comp.vuw.ac.nz!jwright From: Julian.Wright@comp.vuw.ac.nz (Julian Wright) Newsgroups: comp.sys.acorn Subject: Re: possible bug in filer_opendir Keywords: bug filer_opendir expansion Message-ID: <1991Jun01.125533.18239@comp.vuw.ac.nz> Date: 1 Jun 91 12:55:33 GMT Article-I.D.: comp.1991Jun01.125533.18239 References: Sender: news@comp.vuw.ac.nz (News Admin) Organization: Not to speak of... Lines: 32 Nntp-Posting-Host: halswell.comp.vuw.ac.nz Originator: jwright@halswell.comp.vuw.ac.nz |> 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??? No, you aren't crazy... the problem is with Filer_OpenDir. There is a way around it however. Simply define an alias as follows: *Set Alias$Filer_OpenDir Set Alias$OD "%Filer_OpenDir %*0"|mOD|mUnsetAlias$OD|m and the _alias_ expansion when the temp command OD is created will do what we want. Remember that if you put this in an obey file it will have to be: Set Alias$OD "%Filer_OpenDir %%*0"||mOD||mUnsetAlias$OD||m or something like that. I can never remember what combination of double "|"s and double "%"s to use when defining aliases in obey files... :-( Cheers, Julian. -- ;`````````````````````````````````````````````````````````````````````````````; ; I would if I could but I can't so I won't but I might if I find I can later ; ;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,; jwright@comp.vuw.ac.nz julian@bridge.sideways.gen.ac.nz