Observe the following (all examples in ksh on Solaris 5.5.1):
$ pwd
/view/my_view/vobs/my_project/src
$ ls -l mysrc.?@@/main/LATEST
mysrc.?@@/main/LATEST: No such file or directory
$ ls -l *.h@@/main/LATEST
*.h@@/main/LATEST: No such file or directory
$ ls -l mysrc.h@@/main/LATEST
-r--r--r-- 1 gm staff 203 Aug 14 18:22 mysrc.h@@/main/LATEST
$ ls -l mysrc.h@@/main/*/LATEST
-r--r--r-- 1 gm staff 6111 Sep 21 19:47 mysrc.h@@/main/my_branch/LATEST
Note that I'm not using any cleartool commands, just ordinary
Unix commands.
Can this be right? Shells simply do readdir(3) and stat(2), so
why can the shell match regular expressions in version-extended
file names when the RE occurs in the version-extended portion,
but not when the RE occurs in the file-name portion? After all,
the result of a readdir() is going to be the same in both cases,
isn't it?
More critically, how can I write scripts using RE's to access
files with version-extended names? (Please don't suggest using
cleartool find, it would be impossibly slow in my application.)
--
REPLY TO: G. M. Harding, gm@riverstonenet.com, gmhard@acm.org
WEB: http://www.scruz.net/~gm/ PHONE: 408-878-6572 [PST8]
---> I SPEAK FOR MYSELF ALONE. [ INTJ! :-) ] <---
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:26:55 EDT