10.0;pw (pad_write) *DM*, revision 1.0, 87/12/23
pw (pad_write) update edit file while maintaining edit pad unchanged
usage: pw
DESCRIPTION
The pw command updates a file that is being edited. It is valid only for
writable edit pads. The first time you issue pw, the DM writes the
contents of the edit pad to the file that is being edited, without
closing the edit pad. The DM saves the previous contents of the file in
a file with the same name and the suffix .bak. Subsequent pw or wc
(window_close) commands rewrite the new file and leave the .bak version
of the file unchanged.
pw differs from wc in that pw writes the file while wc closes the file,
two distinct operations. pw leaves the edit pad open and it writes the
new version of the file even if other windows are viewing the edit pad.
pw is useful if, for example, you want to try compiling a program you are
editing. If you decide to make more changes to the program, you can just
go back to the edit pad and continue editing, since updates made by pw
leave the edit pad open and active.
The SAVE key executes pw;ro to save the pad and put it in read-only mode.
The pw command requires no arguments or options.