HP3000-L Archives

November 2003, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Stan Sieler <[log in to unmask]>
Reply To:
Stan Sieler <[log in to unmask]>
Date:
Fri, 21 Nov 2003 18:10:06 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
> 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 *

ATOM RSS1 RSS2