delta(1)

delta(1)

NAME

delta - make a delta (change) to an SCCS ®le

SYNOPSIS

delta [-r SID ] [-s][-n][-g list ] [-m mrlist ] [-y comment ] [-p]®les

DESCRIPTION

The delta command is used to permanently introduce into the named SCCS ®le changes that were made to the ®le retrieved by get (called the g-®le, or generated ®le). See get(1).

delta makes a delta to each named SCCS ®le. If a directory is named, delta behaves as though each ®le in the directory was speci®ed as a named ®le, except that non-SCCS®les (last component of the path name does not begin with .s) and unreadable ®les are silently ignored. If a name of - is given, the standard input is read (see WARNINGS). Each line of the standard input is taken to be the name of an SCCS ®le to be processed.

delta may issue prompts on the standard output, depending upon certain options speci®ed and ¯ags (see admin(1)) that may be present in the SCCS ®le (see the -mand -yoptions below).

Options

Option arguments apply independently to each named ®le.

-rSID

Uniquely identi®es which delta is to be made to the SCCS ®le. Use of this option is

 

necessary only if two or more outstanding gets for editing (get

-e) on the same

 

SCCS ®le were done by the same person (login name). The SID value speci®ed with

 

the -roption can be either the SID speci®ed on the get command line or the SID to

 

be made as reported by the get command (see get(1)). A diagnostic results if the

 

speci®ed SID is ambiguous, or, if necessary and omitted on the command line.

-s

Suppresses issuing, on the standard output, of the created delta's SID as well as the

 

number of lines inserted, deleted and unchanged in the SCCS ®le.

 

-n

Speci®es retention of the edited g-®le(normally removed at completion of delta pro-

 

cessing).

 

 

-glist

Speci®es a list (see get(1) for the de®nition of list) of deltas which are to be ignored

 

when the ®le is accessed at the change level (SID) created by this delta.

-m[mrlist]

If the SCCS ®le has the v ¯ag set (see admin(1)), a Modi®cation Request (MR) number

 

must be supplied as the reason for creating the new delta.

 

 

If -mis not used and the standard input is a terminal, the prompt

MRs? is issued on

 

the standard output before the standard input is read. If the standard input is not a

 

terminal, no prompt is issued. The MRs? prompt always precedes the comments?

 

prompt (see the -yoption).

 

 

 

MRs in a list are separated by blanks and/or tab characters. An unescaped new-line

 

character terminates the MR list.

 

 

Note that if the v ¯ag has a value (see admin(1)), it is assumed to be the name of a

 

program (or shell procedure) that is to validate the correctness of the MR numbers. If

 

a non-zero exit status is returned from the MR number-validation program, delta

 

assumes that the MR numbers were not all valid and terminates.

 

-y[comment]

Arbitrary text used to describe the reason for making the delta. A null string is con-

 

sidered a valid comment.

 

 

 

If -yis not speci®ed and the standard input is a terminal, the prompt comments?

 

is issued on the standard output before the standard input is read. If the standard

 

input is not a terminal, no prompt is issued. An unescaped new-line character ter-

 

minates the comment text.

 

 

-p

Causes delta to print (on the standard output in a diff(1) format) the SCCS ®le

 

differences before and after the delta is applied.

 

EXTERNAL INFLUENCES

 

 

Environment Variables

 

 

LC_CTYPE determines the interpretation of text as single- and/or multi-byte characters.

 

HP-UX Release 11i: December 2000

− 1 −

Section 1175

d