[comp.unix.questions] executable return values

maart@cs.vu.nl (Maarten Litmaath) (08/02/89)

jc@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@cs.vu.nl, mcvax!botter!maart