Gosub

Griff Smith ggs at ulysses.UUCP
Wed Mar 12 06:39:46 AEST 1986


> In article <1511 at brl-smoke.ARPA> cotrell at 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 at 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 at ulysses.uucp
UUCP:		ulysses!ggs  ( {allegra|ihnp4}!ulysses!ggs )



More information about the Comp.lang.c mailing list