On Thu, Dec 1, 2011 at 6:41 PM, Reuti <[email protected]> wrote:
> I assume you mean "function" instead of "modules" in the paragraph above.
Yup, I am not that good at all those bash specific functionalities...
Thanks for catching that!
> But it's really interesting, as I wasn't aware that bash will try to scan
> imported environment variables this way. It can also be done in bash instead
> of tcsh then. As "}" is a shell keyword, it must appear at the beginning of a
> command what can be achieved by the newline or a ";".
I have not digged into the bash source code, but I think we are pretty
close to fully understanding how bash distinguishes normal env.vars
from functions. Interestingly, if we end the function declaration with
"; }" in tcsh, and run bash, then bash simply changes the "; }" back
to newline+"}" in the environment.
Rayson
>
> $ export ee="() { echo yes; }"
> $ bash
> $ ee
> yes
>
> -- Reuti
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users