Shut Command [SH]

Qedit 5.7 for HP-UX

Home Previous Next


Shut Command [SH]

Closes the current workfile. May also rename it.

SHUT [ filename ]

(Default: close with same name)

With no filename parameter, Qedit merely stops editing the current file. Although Qedit will close the current workfile for you when you Open another one, you may sometimes want to Shut explicitly. One thing that Shut does is guarantee that all of your changes are actually posted to the disc and will not be lost if the system fails or you disconnect yourself by attempting to make a phone call on your modem phone. To post your changes to the disc without closing the workfile, specify any shell-command (e.g., ls).

You may want to leave your terminal for lunch, in which case it is a good idea to Shut your current file. You can always use Open * to reopen it when you return.

/shut              {you may shorten Shut to SH}
/open *            {reopen same file later}

If you are using a scratchfile and specify a filename parameter, Qedit saves the scratchfile as a permanent Qedit workfile. In this case, the filename must not exist. If you are using a Qedit file, Qedit renames it before closing.

qux/t myfile1
'Language' is now DATA             {copy of myfile1 in scratchfile}
20 lines in file
qux/sh myfile1
Retained existing file for you.    {myfile1 already exists. No change.}
qux/sh myfile1.work                {renamed to myfile1.work}
qux/open *
Open /home/user1/myfile1.work Current = 1 Margins = 1/80
qux/sh myfile1.newwork
File renamed.

Examples

/open crept45.dev    {open source file to edit}
/modify 5/  ...      {make some changes...}
/shut                {close workfile}


Home Previous Next