I guess the most important thing is that Bash doesn't support function nesting. Try entering the whole thing in Bash and the run f1. Also try recalling the function and press enter.
Ian Shields Ph.D. Linux Technologist, ISV & Developer Relations IBM Corp Research Triangle Park, NC [EMAIL PROTECTED] [EMAIL PROTECTED] wrote on 09/15/2008 08:25:49 PM: > [image removed] > > [lpi-discuss] Question about bash functions > > Sergio Belkin > > to: > > General discussion relating to LPI. > > 09/15/2008 08:26 PM > > Sent by: > > [EMAIL PROTECTED] > > Please respond to "General discussion relating to LPI." > > Hi, I was reading http://kanslozebagger.org/lpi-102-practice-exam and > I found a good test 102 > > There is a question that, I don't understand why outputs so... > > Please, could you explain me? Thanks in advance!! > > It's as follow: > > -- Talking about bash, what can be said about the following > functions f1 and f2? > > f1 () > { > > f2 () # nested > { > echo "Function "f2", inside "f1"." > } > > }
_______________________________________________ lpi-discuss mailing list [email protected] http://list.lpi.org/cgi-bin/mailman/listinfo/lpi-discuss
