> Is there a way to force FINFO to report on only temp files? Or, on only permanent files?
>
> I am trying to bulletproof a command-file that is supposed to work on a temp file. There *SHOULDN'T* be a permanent file of the same name, but I am trying to be sure...
>
> I've got
> :purge xx, temp
> :build xx; temp
> :file xx = xx, oldtemp
> So it should work on only the temp file, but I want to get rid of the no-such-file warning on the purge, by putting the purge inside "IF FINFO('xx','exists')". But finfo reports a perm file of that name if one exists and no temp file exists. And yes, I know I can :purge xx, temp >$null, but I don't like to do that.
This seems to work:
:file xx, oldtemp
:calc finfo ("*xx", "exists")
Note the "*" in the filename given to FINFO. If no temp "xx" exists,
I get "FALSE" regardless of whether or not a perm "xx" exists.
SS
--
Stan Sieler
[log in to unmask]
www.allegro.com/sieler/wanted/index.html
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|