On Tue, 16 Sep 2008 -0400 Ian Shields <[EMAIL PROTECTED]> wrote:

> > <[EMAIL PROTECTED]> wrote:
> > 
> > > Hi, I was reading http://kanslozebagger.org/lpi-102-practice-exam
> > > and I found a good test 102
> > [..]
> > 
> > I can hardly believe that this is a typical example for questions of
> > LPIC-1. In general functions are rarely used in bash scripts.

> I doubt this particular one is typical, but functions are certainly
> used in Bash scripts. Particularly so if the script is anything more
> than a trivial one. 

Of course functions (or what bash developers call so...) are used but
I don't believe that writing or bugfixing this kind of obviously
non-trivial scripts that use (nested) functions will be the daily
business of a Level-1-certified person. Most of those scripts are
pretty stable, written and tested by some packagers and distribution
developers who certainly do nothing else the whole day.

Usually it is enough if you can read and somehow understand such a
complex script which is hopefully well documented, maybe in order to
make some minor changes and adoptions. For example taking the skeleton
of a rc-script to "write" your own.


> grep "^[:space:][a-zA-Z].*()" $(grep -l '^#!' /usr/bin/*
> 2>/dev/null)|wc -l

Nice job! :-)

-- 
Gruß,
 Tobias.
_______________________________________________
lpi-discuss mailing list
[email protected]
http://list.lpi.org/cgi-bin/mailman/listinfo/lpi-discuss

Reply via email to