Operating System - HP-UX
1827460 Members
4247 Online
109965 Solutions
New Discussion

Re: psf File Syntax Question

 
SOLVED
Go to solution
Bob Viveney_1
Occasional Advisor

psf File Syntax Question

I know I can use a line such as

prerequisites Othe_Prod,r>=C.06.00.00.%

in my psf file. What does the '%' character mean? I assume it is used as a delimiter to the parser - match up to here - but I cannot find any documentation for it. Where is the use of '%' documented?
4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: psf File Syntax Question

I don't see any mention of "%" here:
http://docs.hp.com/en/5900-0307/ch01s04.html#bajdibib

Typically "%" is used internally when developing HP-UX software.
Bob Viveney_1
Occasional Advisor

Re: psf File Syntax Question

If you look at the INDEX files under /var/adm/sw/products you'll see there are lots of prerequisites/coreqresites which use the '%' sign in the version string ...

cd /var/adm/sw/products
find . -name INDEX -exec grep prerequi {} \; | grep "%"

Some examples ...
prerequisites LdapUxClient.LDAP-C-SDK,r>=B.03.20.%
prerequisites OS-Core.UX-CORE,r>=B.11.22.%
prerequisites WBEMServices.WBEM-CORE,r>=A.02.00.%
prerequisites OVSNMPAgent.MASTER,r>=B.11.23.%71

So its commonly used, seems to delimit the version number comparison but I can't find and documentation on it.

Dennis Handly
Acclaimed Contributor
Solution

Re: psf File Syntax Question

>seems to delimit the version number comparison

If done correctly, the "%" distinguishes HP internal/beta versions. (Typically there is a number after the "%".)
Dennis Handly
Acclaimed Contributor

Re: psf File Syntax Question

>the "%" distinguishes HP internal/beta versions.

And "%" sorts before numbers, in ASCII.