On 16 Apr 2012, at 09:54, Maarten Billemont wrote: > On 15 Apr 2012, at 22:52, Linda Walsh wrote: >> >> But I want the syntax >> >> include file.shh >> >> to just 'work', i.e. first time, it would call my include file, which defines >> the function... > > I'm sorry, tell me again why you don't just write "source file.sh" instead of > having to invent your own "include file.sh"?
I just realized, you appear to be looking for a way to define a "source path" to search for the file. PATH=/foo:/bar:/etc source file or PATH=$SOURCEPATH source file I know it's not as "clean" as "include file", but it's certainly more clear as to what it does. And clarity is more important, IMO. Also, it conveniently also doesn't require insane hacks.
smime.p7s
Description: S/MIME cryptographic signature