export -f function_name
The confusing thing is that 'set' command shows the function as a 'shell variable' in subshells, even without the export command.
But 'env' command does not show the function name until you use export -f
That is what make requires apparently.
My /bin/sh is a link to /bin/bash
At 09:01 AM 10/25/2002 +0200, Johan Bezem wrote:
possible, make can spawn many commands directly, without the overhead of an intermediate shell, but of course not bash-shell-functions...
Well now it can :-)
goo :
@echo $$(xmsubdirs)
[greg@p3 test]$ make goo
foo.html.xm goo junkme moo.xm projectNow it isn't empty. It is a variable that bash tries to evaluate after expanding.> [greg@p3 test]$ make foo > Here you're calling the shell without anything (Mind: $(xmsubdirs) is empty!!), so it produces an empty line, and exits.
[greg@p3 test]$ make foo
XMLMAKE_BUILD_EXCLUDE_DIRS_RE='(^CVS)|(^trash)';: -c: line 1: syntax error near unexpected token `()'
XMLMAKE_BUILD_EXCLUDE_DIRS_RE='(^CVS)|(^trash)';: -c: line 1: `() { [ -z "" ] && set .;'
Cheers,
Greg Keraunen
_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make
