UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: ungetChapter 18
The Source Code Control System
Next: Reference: what
 

val

val [options] files

Validate that the SCCS files meet the characteristics specified in the options. val produces messages on the standard output for each file and returns an 8-bit code upon exit. The codes are described in "Return Value Bits"; bits are counted left to right.

Options

-

Read standard input and interpret each line as a val command-line argument. Exit with an EOF. This option is used by itself.

-mname

Compare name with %M% keyword in file.

-rsid

Check whether the SCCS ID is ambiguous or invalid.

-s

Silence any error message.

-ytype

Compare type with %Y% keyword in file.

Return Value Bits

BitMeaning
0

Missing file argument.

1

Unknown or duplicate option.

2

Corrupted SCCS file.

3

Cannot open file, or file is not an SCCS file.

4

SID is invalid or ambiguous.

5

Nonexistent SID.

6

Mismatch between type and -y argument.

7

Mismatch between filename and -m argument.


Previous: Reference: ungetUNIX in a Nutshell: System V EditionNext: Reference: what
Reference: ungetBook IndexReference: what

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System