Summary
###########################################################################
File: patch.icn
Subject: Procedures for UNIX-like patch(1)
Author: Rich Morin
Date: June 18, 1990
###########################################################################
This file is in the public domain.
###########################################################################
This procedure produces a sequence of edited items, reading a source
stream (from) and a stream of difference records (diffs), as generated
by dif.icn.
An optional parameter (rev) causes the edits to be made in reverse.
This allows an old stream to be regenerated from a new stream and an
appropriate stream of difference records.
The original patch(1) utility was written by Larry Wall, and is used
widely in the UNIX community. See also diffu.icn and patchu.icn, the
utility program versions of dif.icn and patch.icn.
Usage: patch(old, diff) # patch old to new via diff
patch(new, diff, rev) # patch new to old via diff
###########################################################################
Requires: co-expressions
###########################################################################
Procedures:
patch, zot_patch
This file is part of the (main) package.
Source code.
patch(from, diff, rev)
zot_patch(msg)
exit w/ message
This page produced by UniDoc on 2021/04/15 @ 23:59:54.