Here Documents not closed in at
Andy Sherman
andys at ulysses.homer.nj.att.com
Tue Jun 27 03:24:27 AEST 1989
The 4.2 and 4.3 BSD versions of at will fail if you use a shell that
strictly follows the POSIX standard for handling here documents. Note
that previous documentation of the shell indicated that a here
document could be closed by either the key line or by an end of file.
According to POSIX, an end of file while processing a here document is
a syntax error.
The shell script generated by the stock 4.3 version of at contains the
construct:
$SHELL << '...the rest of the file is shell input'
...
Your commands submitted to at
...
END OF FILE
With a POSIX conforming shell, all your at jobs will terminate with
syntax errors rather than executed jobs. The fix to at.c is easy.
Output the line:
...the rest of the file is shell input
just before closing the at queue file.
--
Andy Sherman/AT&T Bell Laboratories/Murray Hill, NJ *NEW ADDRESS*
AUDIBLE: (201) 582-5928 *NEW PHONE*
READABLE: andys at ulysses.ATT.COM or att!ulysses!andys *NEW EMAIL*
The views and opinions are my own. Who else would want them? *OLD DISCLAIMER*
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list