Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc Intel XENIX 286 Programmers Guide (86) - Tenox.tc

09.06.2013 Views

XENIX Programming Programming Commands csh (continued) Signal Handling The shell normally ignores quit signals. The interrupt and quit signals are ignored for an invoked command if the command is followed by &; otherwise, the signals have the values the shell inherited from its parent. The shell's handling of interrupts can be controlled by onintr. Login shells catch the terminate signal; otherwise, this signal is passed on to children from the state in the shell's parent. In no case are interrupts allowed when a login shell is reading the .logout file. Files -/.cshrc -/.login -/.logout /bin/sh /tmp/sh* /dev/null I etc/passwd Limitations Read by each shell at the beginning of execution Read by login shell after .cshrc at login Read by login shell at logout Shell for scripts not starting with a # Temporary file for

Programming Commands XENIX Programming csh (continued) Credit This utility was developed at the University of California at Berkeley and is used with permission. Notes Built-in control structure commands like foreach and while cannot be used with I, &, or ;. Commands within loops, prompted for by ? , are not placed in the history list. It is not possible to use colon (:) modifiers on the output of command substitutions. csh attempts to import and export the PATH variable for use with regular shell scripts. This works only in simple cases, where PATH contains no command characters. This version of csh does not support or use the process control features of the 4th Berkeley Distribution. B-56

Programming Commands <strong>XENIX</strong> Programming<br />

csh (continued)<br />

Credit<br />

This utility was developed at the University of California at Berkeley and is used with<br />

permission.<br />

Notes<br />

Built-in control structure commands like foreach and while cannot be used with I, &,<br />

or ;.<br />

Commands within loops, prompted for by ? , are not placed in the history list.<br />

It is not possible to use colon (:) modifiers on the output of command substitutions.<br />

csh attempts to import and export the PATH variable for use with regular shell scripts.<br />

This works only in simple cases, where PATH contains no command characters.<br />

This version of csh does not support or use the process control features of the 4th<br />

Berkeley Distribution.<br />

B-56

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

Saved successfully!

Ooh no, something went wrong!