executable return values (was: curses/termcap/terminfo doc.)

Maarten Litmaath maart at cs.vu.nl
Wed Aug 2 07:41:14 AEST 1989


jc at minya.UUCP (John Chambers) writes:
\..., and treats any
\executable file as a function whose value is its standard output.

Isn't an executable's return value (read: exit status) `totally unrelated'
to its output?
Example:

	if test $# = 0
	then
		echo wrong
		exit 0
	else
		echo OK
		exit 1
	fi
Sic!
-- 
"Mom! Eric Newton broke the day! In 24   |Maarten Litmaath @ VU Amsterdam:
  parts!" (Mike Schmitt in misc.misc)    |maart at cs.vu.nl, mcvax!botter!maart



More information about the Comp.unix.wizards mailing list