Re: Korn shell function paramter passing

From: Radoulov, Dimitre <>
Date: Thu, 25 Jun 2009 15:44:31 +0200
Message-ID: <> wrote:
> [...]
> Now I dont need to return SUBJECT at all, or pass it to cleanup,
> (expected behavior). But it seems as though this is defeating the my
> original purpose of using subroutines, (kind of) I was trying when
> possible to call any function with tee ( function | tee a $logfile)
> and avoid doing that with each printf statement or continuously
> calling my printmessage routine.
> Calling the function and piping through tee works of coursce except
> when you want to parameterize or pass variables back and forth. It is
> at this point where my idea could use a little tweaking from others
> that have more experience redirecting the various streams, ie &1, &2,
> &3, &4, etc.

Could you post a small script that illustrates your problem?



Received on Thu Jun 25 2009 - 08:44:31 CDT

Original text of this message