Re: Korn shell function paramter passing

From: Radoulov, Dimitre <cichomitiko_at_gmail.com>
Date: Thu, 25 Jun 2009 15:44:31 +0200
Message-ID: <4A437F3F.2060609_at_gmail.com>



Joel.Patterson_at_crowley.com wrote:
> [...]
>
> Now I don’t 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?

Regards

Dimitre

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Jun 25 2009 - 08:44:31 CDT

Original text of this message