cc: [EMAIL PROTECTED]
Subject: Re: [ast-users] How can I shcomp files in the FPATH directory
--------
> Hello forum,
>
> I have some generic functions in a directory that is accessed via FPATH.
> How can I shcomp these files and still get my scripts to recognise them?
>
> Thanks in advance.
>
> Regards,
> Steven
>
You should be able to replace the file on FPATH with a version compiled
with shcomp. However, I just tried it and I see that it core dumps.
This will be fixed in the next update.
Also, the file has to be compiled as a single command. Therefore,
if you have more than just a function definition, you should
put a { in front of the first line, and a } as the last line
before you compile.
I suspect that we will add an option to shcomp that will do the
equivalent.
Thanks for pointing this out.
By the way, the same applies for type definitions as well as
function definitions.
David Korn
[EMAIL PROTECTED]
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users