Annotation of pkgsrc/pkgtools/pkgdiff/files/pkgvi.0, revision 1.3

1.1       jschauma    1: PKGVI(1)                NetBSD General Commands Manual                PKGVI(1)
                      2: 
                      3: NNAAMMEE
1.2       bad         4:      ppkkggvvii -- run editor and make backup of given file if necessary
1.1       jschauma    5: 
                      6: SSYYNNOOPPSSIISS
                      7:      ppkkggvvii [+command] _f_i_l_e
                      8: 
                      9: DDEESSCCRRIIPPTTIIOONN
                     10:      The ppkkggvvii utility runs the user's favourite editor on a copy of specified
                     11:      file.  If no changes are made in the editor, nothing happens.  Else the
                     12:      original file is kept as _f_i_l_e_n_a_m_e_._o_r_i_g, and the modified file is saved as
                     13:      _f_i_l_e_n_a_m_e.  If ppkkggvvii finds _f_i_l_e_n_a_m_e_._o_r_i_g, it behaves as normal editor and
1.2       bad        14:      changes are only made to _f_i_l_e_n_a_m_e, not affecting _f_i_l_e_n_a_m_e_._o_r_i_g.  In both
                     15:      cases ppkkggvvii ensures that the file to be edited is writable by the user.
1.1       jschauma   16: 
                     17:      Available option:
                     18: 
                     19:      ++ccoommmmaanndd
                     20:              This option is passed unmodified as first argument to the editor.
                     21:              This is useful when the editor used is vi(1).
                     22: 
                     23: EENNVVIIRROONNMMEENNTT
                     24:      ppkkggvvii uses $PKGEDITOR if defined, then it looks for $EDITOR, if neither
                     25:      is defined, it uses vi(1).
                     26: 
                     27: SSEEEE AALLSSOO
                     28:      pkgdiff(1)
                     29: 
                     30: AAUUTTHHOORRSS
                     31:      The pkgvi utility was written by Tomasz Luchowski <zuntum@netbsd.org>.
                     32: 
1.3     ! wiz        33: NetBSD 5.0                        Aug 1, 2006                       NetBSD 5.0

CVSweb <webmaster@jp.NetBSD.org>