12.07.2015 Views

spec - Local Sector 7 web page

spec - Local Sector 7 web page

spec - Local Sector 7 web page

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

¡¡close(filename) — Closes filename and removes it from the table of files available §££ ¡§ §§£ £ £ ¢¢ ¡§ ¥¤ ¤£¢ ¥££¥¤ for output. topen. Files should beclosed before modifying them with editors.on() — Lists all open files and indicates which ones are currently turned on for output.on(filename) — Turns on filename for output. All messages, except for some errorand debugging messages, but including all print and printf() output, aresent to all turned-on devices. If filename has not been made available for outputwith the open() function, it will be opened. §££ ¡§ §§££ £the file can’tbeopened or if there are too many open files.off(filename) — Turns off output to filename ,but keeps it in the list of files availablefor output. If this was the last turned-on file or device, tty is turned back££¥¤topen.¥on automatically. R §££ ¡§¨§§£ £ £¢ ¢ ¡§<strong>spec</strong> remembers the directory the files are in when they are first opened. If the userchanges <strong>spec</strong>’s current directory, open files may be referenced either by the namewith which the files were opened or by the correct path name relative to the currentdirectory. Ifanopen file disappears from the file system (for example, if a userremoves the file using a subshell), the next time the file is written to, <strong>spec</strong> prints awarning message and creates a new instance of the file.Files should be closed before attempting to edit them outside of <strong>spec</strong>.Errors during parsing or execution of commands, or typing a ˆC turns off all openfiles except log files (see next section).¢£¢¡§¥¤¤¦¢Log FilesSpecial log files can be created for debugging or archiving purposes. Aregular log fileis a file with a name beginning with the characters log or ending with the characters.log .All output sent to any device is sent to a log file.A<strong>spec</strong>ial type of log file is a debugging log file. That is a file with a name that begins82 REFERENCE MANUAL INTERIM WORK-IN-PROGRESS (8/16/01) NOT FOR GENERAL DISTRIBUTION

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!