Note: Due to technical difficulties, the Archives are currently not up to date.
GMANE provides an alternative service for most mailing lists. c.f. bug 424647
List Archive: gentoo-dev
On Tue, 2003-05-13 at 05:28, YAMAKURA Makoto wrote:
> Hi,
>
> From: Martin Schlemmer <azarah@g.o>
> Subject: [gentoo-dev] baselayout-1.8.6.7
> Date: 12 May 2003 02:00:34 +0200
>
> > - Updated the dependency system to try and touch files less.
> > For example, dependencies are calculated in runscript.sh
> > now without the symlink method, but rather with env variables.
> > Also, all helper scripts should be sourced only once for
> > any series of services started, or during a runlevel change.
>
> I have trouble with pcmcia/net.eth0 dependency. "deptree" script
> defines functions such as "depinfo_net.eth0", but bash doesn't allow
> those names, so "get_dep_info" in rc-services.sh gets failed.
>
If you look at bash's manual page, they define a variable as:
-------------------------------------------------------
A parameter is an entity that stores values. It can be a name, a num-
ber, or one of the special characters listed below under Special Param-
eters. For the shell's purposes, a variable is a parameter denoted by
a name. A variable has a value and zero or more attributes.
--------------------------------------------------------
Let on the 'a variable is a parameter denoted by a name'.
This is for a function:
--------------------------------------------------------
[ function ] name () { list; }
This defines a function named name. The body of the function is
the list of commands between { and }.
--------------------------------------------------------
And if you then check what they define 'name' as:
--------------------------------------------------------
name A word consisting only of alphanumeric characters and under-
scores, and beginning with an alphabetic character or an under-
score. Also referred to as an identifier.
--------------------------------------------------------
Means that it is totally legal to call a variable/function:
get_foo_bar
Regards,
--
Martin Schlemmer
Gentoo Linux Developer, Desktop/System Team Developer
Cape Town, South Africa
|
| Attachment: |
|
signature.asc (This is a digitally signed message part)
|
|