Gentoo Archives: gentoo-dev

From: Martin Schlemmer <azarah@g.o>
To: YAMAKURA Makoto <makoto@×××××××××××.jp>
Cc: Gentoo-Dev <gentoo-dev@g.o>
Subject: Re: [gentoo-dev] baselayout-
Date: Tue, 13 May 2003 18:00:47
Message-Id: 1052848903.21202.10.camel@nosferatu.lan
On Tue, 2003-05-13 at 05:28, YAMAKURA Makoto wrote:
> Hi, > > From: Martin Schlemmer <azarah@g.o> > Subject: [gentoo-dev] baselayout- > Date: 12 May 2003 02:00:34 +0200 > > > - Updated the dependency system to try and touch files less. > > For example, dependencies are calculated in > > 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 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


File name MIME type
signature.asc application/pgp-signature


Subject Author
Re: [gentoo-dev] baselayout- YAMAKURA Makoto <makoto@×××××××××××.jp> (=?iso-2022-jp?B?GyRCOzNBUhsoQiAbJEI/PxsoQg==?=)