Korn shell function paramter passing
From: <Joel.Patterson_at_crowley.com>
Date: Thu, 25 Jun 2009 08:00:15 -0400
Message-ID: <0684DA55864E404F8AD2E2EBDFD557DA02F233D9_at_JAXMSG01.crowley.com>
Date: Thu, 25 Jun 2009 08:00:15 -0400
Message-ID: <0684DA55864E404F8AD2E2EBDFD557DA02F233D9_at_JAXMSG01.crowley.com>
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-lReceived on Thu Jun 25 2009 - 07:00:15 CDT