Re: Korn shell function paramter passing

From: Niall Litchfield <niall.litchfield_at_gmail.com>
Date: Thu, 25 Jun 2009 13:06:58 +0100
Message-ID: <7765c8970906250506o4c0ae6a7qd66d15971d02c477_at_mail.gmail.com>



are you using typeset to define local variables by any chance?

Niall

On Thu, Jun 25, 2009 at 1:00 PM, <Joel.Patterson_at_crowley.com> wrote:

>
>
> Joel Patterson
> Database Administrator
> 904 727-2546
>
>
> This one I'm spending to much time on.
>
> I have a korn shell script.
>
> #!/usr/bin/ksh
> Do some initialization commands
> Call a function startlogfile
> Call function 'main'
> main calls function runsomething
> Runsomething initializes and returns "${SUBJECT}"
> main can print ${SUBJECT}
> main returns ${SUBJECT} (or "${SUBJECT}", or ASUBJECT=${SUBJECT}
> successfully ${ASUBJECT}, or "${ASUBJECT}"
> outer most shell cannot print $SUBJECT
>
>
> what's going on?
>
> Thanks,
> --
> http://www.freelists.org/webpage/oracle-l
>
>
>

-- 
Niall Litchfield
Oracle DBA
http://www.orawin.info

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Jun 25 2009 - 07:06:58 CDT

Original text of this message