[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hdparm script



Colin Watson wrote:
> On Thu, Sep 26, 2002 at 11:45:40AM +0200, Kurt Bernhard Pruenner wrote:
> > I guess using ${!foo} would help, which takes the content of the
> > variable foo and uses that as the variable to get the content from, i.e.
> >
> > foo=PATH
> > echo ${!foo}
> >
> > would print your PATH...
> 
> Beware that that's a bashism. You need eval to do it portably.

Somehow I feared that this was the case... is there a package that
provides a really, really plain shell (i.e. just /bin/sh, no funny
prefixes added) you can test such things against?
-- 
Kurt Bernhard Pruenner          Telefon: 0732/2468-7135
Techniker Gr. Systemsoftware    Fax:     0732/2468-7138

np:  Hallucinator - Black Angel (Landlocked)



Reply to: