[Info-vax] Suggestion: Adding a /SORT option to DIRECTORY and F$SEARCH ?
alanfe...@gmail.com
alanfeldman48 at gmail.com
Wed Feb 9 12:00:53 EST 2022
On Wednesday, February 9, 2022 at 2:02:34 AM UTC-5, Steven Schweda wrote:
> > How do y'all handle multiple versions of files when sorting by date or
> > size and such?
[...]
> Define "current version". And _not_ show all the files requested by
> the user?
>
> If the user wants only the highest version (which might not be the
> latest), then there's a syntax for that: ";0" (or ";"). So far as I
> know, there's no way to specify "latest".
Yes, there is. When you do a commands like
DIR A.A;
A = F$SEARCH("A.A")
you get the current version. Or you could call it the latest version, or the highest version, or the version with the largest version number.
When you give a file-spec with just ; in the version-number field, or without anything in that field, you would get the version with the highest version number. Seems to me that that would make it the current version.
More information about the Info-vax
mailing list