Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ulysses.UUCP Path: utzoo!watmath!clyde!burl!ulysses!ggs From: ggs@ulysses.UUCP (Griff Smith) Newsgroups: net.lang.c Subject: Re: Gosub Message-ID: <1204@ulysses.UUCP> Date: Tue, 11-Mar-86 15:39:46 EST Article-I.D.: ulysses.1204 Posted: Tue Mar 11 15:39:46 1986 Date-Received: Wed, 12-Mar-86 21:51:18 EST References: <1511@brl-smoke.ARPA>, <1201@ulysses.UUCP> <620@bentley.UUCP> Organization: AT&T Bell Laboratories, Murray Hill Lines: 20 > In article <1511@brl-smoke.ARPA> cotrell@nbs writes: > >>To answer a somewhat different question, while I am opposed to [gosub] > >>in C ... I would very much like to see this in shell command files. > >>... I feel that the overhead of opening another file and the > >>difficulty of passing back results (`cmd args` is limited) justifies it. > > and in article <1201@ulysses.UUCP> ulysses!ggs answers: > >Sorry jim, we're ahead of you. It's called "function"... > > Now if only shell function calls didn't destroy the $* variable, they might > be useful. True, for the System V shell. Ksh saves and restores $* correctly, and functions are definitely useful. -- Griff Smith AT&T (Bell Laboratories), Murray Hill Phone: (201) 582-7736 Internet: ggs@ulysses.uucp UUCP: ulysses!ggs ( {allegra|ihnp4}!ulysses!ggs )