PKGVI(1)

NAME
pkgvi - run editor and make backup of given file if necessary

SYNOPSIS
pkgvi [+command] file [file ...]

DESCRIPTION
The pkgvi utility runs the user's favourite editor on a copy of specified file. If no changes are made in the editor, nothing happens. Else the original file is kept as filename.orig, and the modified file is saved as filename. If pkgvi finds filename.orig, it behaves as normal editor and changes are only made to filename, not affecting filename.orig. In both cases pkgvi ensures that the file to be edited is writable by the user.

Available option:

+command
    This option is passed unmodified as first argument to the editor. This is useful when the editor used is vi(1).

ENVIRONMENT
pkgvi uses PKGEDITOR if defined, then it looks for EDITOR, if neither is defined, it uses vi(1).

SEE ALSO
pkgdiff(1)

AUTHORS
The pkgvi utility was written by Tomasz Luchowski <zuntum@NetBSD.org>.