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

Re: hdparm script



On Thu, Sep 26, 2002 at 01:34:25PM +0200, Kurt Bernhard Pruenner <pruenner@ssw.uni-linz.ac.at> was heard to say:
> 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?

  dash (nee ash) is probably the closest thing we have.  ISTR there's
one out there that's even more determinedly usel^H^H^H^Hminimal, but
I think it actually excludes things that Debian /bin/sh scripts are
allowed to use.

  Daniel

-- 
/-------------------- Daniel Burrows <dburrows@debian.org> -------------------\
|          You are in a maze of twisty little signatures, all alike.          |
\-Evil Overlord, Inc: planning your future today. http://www.eviloverlord.com-/



Reply to: