Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

val(1) [hpux man page]

val(1)							      General Commands Manual							    val(1)

NAME
val - validate SCCS file SYNOPSIS
SID] name] type] files DESCRIPTION
The command reads one or more files to determine whether each file read is an SCCS file meeting the characteristics specified by the optional argument list. Command-line options may appear in any order, and are described below. Options The command recognizes the following options and command-line arguments. The effects of each option apply independently to each specified file. Silent option. Suppress diagnostic messages normally generated on the standard output when an error is encountered while processing any specified file. Check existence of revision SID in file where SID (SCCS IDentification string) is an SCCS delta number. SID is first checked to ensure that it is unambiguous and valid before checking file. For example, is ambiguous because it physically does not exist but implies 1.1, 1.2, etc., which may exist; and are invalid because they have a zero suffix which never appears in a valid delta number. name is compared with the SCCS keyword in file. type is compared with the SCCS keyword in file. Verbose option. Prints additional detailed diagnostic messages on the standard output for any corruption detected while processing each named file. The messages are intended for use with the information contained in sccsfile(4) when fixing the file. file One or more SCCS files to be processed. If is used as a file argument, reads the standard input until an end-of-file condition is encountered. Each line read is independently processed as if it were a command-line argument list. EXTERNAL INFLUENCES
Environment Variables determines the interpretation of text within file as single- and/or multi-byte characters. determines the language in which messages are displayed. If or is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty variable. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to "C". See environ(5). International Code Set Support Single-byte and multi-byte character code sets are supported. RETURN VALUE
The 8-bit code returned by is a disjunction of the possible errors; i. e., can be interpreted as a bit string where (moving from left to right) set bits are interpreted as follows: Bit Interpretation 0 Missing file argument; 1 Unknown or duplicate option argument; 2 Corrupt SCCS file; 3 Cannot open file or file is not an SCCS file; 4 SID is invalid or ambiguous; 5 SID does not exist; 6 does not match type argument; 7 does not match name argument; Note that can process two or more files on a given command line, and in turn can process multiple command lines (when reading the standard input). In these cases an aggregate code is returned; a logical of the codes generated for each command line and file processed. DIAGNOSTICS
generates diagnostic messages on the standard output for each command line and file processed, and also returns a single 8-bit code upon exit as described earlier under Use the sccshelp(1) command for explanations. SEE ALSO
admin(1), delta(1), get(1), sccshelp(1), prs(1), sccsfile(4). STANDARDS CONFORMANCE
val(1)

Check Out this Related Man Page

sccs-val(1)							   User Commands						       sccs-val(1)

NAME
sccs-val, val - validate an SCCS file SYNOPSIS
val [-s] [-m name] [-rsid] [-y type] s.filename... DESCRIPTION
The val utility determines if the specified s.files meet the characteristics specified by the indicated arguments. val can process up to 50 files on a single command line. val has a special argument, `-', which reads the standard input until the end-of-file condition is detected. Each line read is indepen- dently processed as if it were a command line argument list. val generates diagnostic messages on the standard output for each command line and file processed and also returns a single 8-bit code upon exit as described below. The 8-bit code returned by val is a disjunction of the possible errors, that is, it can be interpreted as a bit string where (moving from left to right) the bits set are interpreted as follows: bit 0 = missing file argument bit 1 = unknown or duplicate option bit 2 = corrupted s.file bit 3 = can not open file or file not in s.file format bit 4 = the SCCS delta ID (SID) is invalid or ambiguous bit 5 = the SID does not exist bit 6 = mismatch between Y% and -y argument bit 7 = mismatch between sccs-val.1 and -m argument val can process two or more files on a given command line, and in turn can process multiple command lines (when reading the standard input). In these cases, an aggregate code is returned which is the logical OR of the codes generated for each command line and file pro- cessed. OPTIONS
The following options are supported: -s Silent. Suppresses the normal error or warning messages. -m name Compares name with the %M% ID keyword in the s.file. -rsid Checks to see if the indicated SID is ambiguous, invalid, or absent from the s.file. -y type Compares type with the %Y% ID keyword. ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of val: LANG, LC_ALL, LC_CTYPE, LC_MES- SAGES, and NLSPATH. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWsprot | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ |Standard |See standards(5). | +-----------------------------+-----------------------------+ SEE ALSO
sccs(1), sccs-admin(1), sccs-delta(1), sccs-get(1), sccs-help(1), what(1), sccsfile(4), attributes(5), environ(5), standards(5) DIAGNOSTICS
Use the SCCS help command for explanations (see sccs-help(1)). SunOS 5.11 17 Jan 2008 sccs-val(1)
Man Page