Gentoo Logo
Gentoo Spaceship

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
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
To: YAMAKURA Makoto <makoto@...>
From: Martin Schlemmer <azarah@g.o>
Subject: Re: baselayout-
Date: 13 May 2003 20:01:43 +0200
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:




Martin Schlemmer
Gentoo Linux Developer, Desktop/System Team Developer
Cape Town, South Africa

signature.asc (This is a digitally signed message part)
Re: baselayout-
-- 山倉 真
-- Martin Schlemmer
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: baselayout-
Next by thread:
Re: baselayout-
Previous by date:
Re: Mozilla 1.3.1 ebuild
Next by date:
Re: baselayout-

Updated Jun 17, 2009

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.