correct isatty usage

Maarten Litmaath maart at cs.vu.nl
Fri Feb 24 22:46:30 AEST 1989


In article <1161 at tikal.Teltone.COM> dave at tikal.UUCP (David Karr) writes:
\if ({`test -t 0`}) then

	if ({ test -t 0 }) then
or
	if { test -t 0 } then

You want the exit status instead of the standard output from test.
-- 
 "Those who do not understand Henry     |Maarten Litmaath @ VU Amsterdam:
Spencer are condemned to reinvent DOS." |maart at cs.vu.nl, mcvax!botter!maart



More information about the Comp.unix.questions mailing list