Xref: utzoo comp.unix.wizards:17463 comp.unix.questions:15343 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: executable return values (was: curses/termcap/terminfo doc.) Message-ID: <2968@solo12.cs.vu.nl> Date: 1 Aug 89 21:41:14 GMT References: <1@minya.UUCP> Organization: V.U. Informatica, Amsterdam, the Netherlands Lines: 20 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