[Pm-utils] [patch commit] [014] POSIXification of pm-utils

Michael Biebl mbiebl at gmail.com
Wed Jan 30 04:02:28 PST 2008


2008/1/30, Stefan Seyfried <seife at suse.de>:
> On Sun, Jan 27, 2008 at 02:55:06PM -0600, Victor Lowther wrote:
> > Simplify parameter expansion in pm-action and pm-is-supported.
> >
> > On Jan 27, 2008 2:53 PM, Victor Lowther <victor.lowther at gmail.com> wrote:
> > > nullglob is a bashism.  POSIX does not have it, and the previous
> > > patches have gotten rid of our dependency on it.
> > >
>
> > diff -U 0 -rNX diffignore pm-utils.updates/src/pm-action working/src/pm-action
> > --- pm-utils.updates/src/pm-action    2008-01-27 11:58:02.000000000 -0600
> > +++ working/src/pm-action     2008-01-17 20:56:28.000000000 -0600
> > @@ -30 +30 @@
> > -     echo "$(basename "$0") [options]"
> > +     echo "${0##*/} [options]"
> > @@ -92,3 +92 @@
> > -ACTION=$(basename "$0")
> > -ACTION=${ACTION#pm-}
> > -ACTION=${ACTION/-/_}
> > +ACTION=${0##*pm-}
>
> Does pm-suspend-hybrid still work after that?

Yes, see 0de89bf5f75ac3ba46f464f51e46c416ad0781ef

Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


More information about the Pm-utils mailing list