Path: utzoo!utgpu!water!watmath!clyde!rutgers!ames!pasteur!ucbvax!MACALSTR.BITNET!SEENGS1 From: SEENGS1@MACALSTR.BITNET Newsgroups: comp.os.vms Subject: f$search() lexical question... Message-ID: <8802210237.AA27516@ucbvax.Berkeley.EDU> Date: 16 Feb 88 21:07:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 46 Hello there. I have a small problem using the f$search lexical. Given the following directory listing: $ dir [...]foo.* Directory DUA1:[EENGSTRO.PUBLIC] FOO.DIR;1 1/1 11-FEB-1988 10:58 (RWE,RWE,,RE) Directory DUA1:[EENGSTRO.PUBLIC.FOO] FOO.COM;1 25/25 11-FEB-1988 13:47 (RE,RWED,,RE) FOO.DAT;1 17/17 11-FEB-1988 13:47 (RE,RWED,,RE) If I 'execute' the following code: $ SearchSpec = "DUA1:[EENGSTRO.PUBLIC...]FOO.*;" $ Num = 0 $Search: Num = Num + 1 $ SearchItem'Num' = f$search(SearchSpec,1) $ if SearchItem'Num' .eqs. "" then $ EXIT $ Write sys$output " ''Num') ",SearchItem'Num' $ goto Search I get the following output: 1) DUA1:[EENGSTROM.PUBLIC]FOO.DIR;1 2) DUA1:[EENGSTROM.PUBLIC.FOO]FOO.COM;1 3) DUA1:[EENGSTROM.PUBLIC.FOO]FOO.DAT;1 While, someone else 'executing' the same code gets only this: 1) DUA1:[EENGSTROM.PUBLIC]FOO.DIR;1 Could someone enlighten me on why this is so? Also, this is on a VAX 11/780 under VMS 4.7. Many thanks, Eric Engstrom - Bitnet: SEENGS1@Macalstr 1600 Grand Avenue Macalester College St. Paul, Minnesota 55105-1899, U.S.A. [ Profanity is the one language all programmers know best. ]