HP3000-L Archives

February 2005, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Keven Miller <[log in to unmask]>
Reply To:
Keven Miller <[log in to unmask]>
Date:
Sun, 13 Feb 2005 06:26:02 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (33 lines)
I believe the various shells, like korn, provide the ability
to create functions in their scripts.

So I suppose you could create a script with only these common
functions. Then your other scripts could execute it, thereby
defining the common functions.

 From MPE posix

/KEVENM/CD/cat fun1
function one {
print "one "
}


/KEVENM/CD/cat fun2
###
. ./fun1
print "this is "
one
print "example"
###


/KEVENM/CD/. ./fun2
this is
one
example
/KEVENM/CD/

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2