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, use the :Continue command or any colon-command.

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 specify a filename parameter, Qedit renames the workfile to the new name before closing it. If the workfile is currently a temporary file, the rename option also saves it as a permanent file. This command can be very helpful when you want to save the contents of Qeditscr as a permanent Qedit file.

If the filename already exists, Shut asks if you wish to purge the old file. If you specify * as filename, Shut uses the name of the last file Texted. Even though you have renamed Qeditscr, Qedit will create a new one when it next needs it. You can automatically purge any existing file by doing Shut filename,YES. Or you can automatically abort the Shut command in that case by doing Shut filename,No.

To save the current scratch file in the temporary file domain, add ,TEMP to the filename parameter: Shut filename,Temp.

Examples

  /open crept45.dev    {open source file to edit}  /modify 5/  ...      {make some changes...}  /shut                {close workfile}  /t quser.doc         {make temporary copy of file}  QEDITSCR   ...                 {make changes to a copy of Quser.doc}  /list lp all         {list scratch file to printer}  /shut *              {save Qeditscr back as Quser.doc}  QUSER.DOC.ROBELLE,OLD Qedit File, # of lines=451  Purge existing file [no]? yes  /open crept45.dev    {open development version}  /shut crept45.src    {move to production group}  /text file1  /shut file1x,temp    {save as temporary file}  /text file1  /shut file1y,yes     {purge existing file}  

Shut Command [SH]