[Pm-utils] [patch commit] [014] POSIXification of pm-utils
Stefan Seyfried
seife at suse.de
Wed Jan 30 03:53:11 PST 2008
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?
--
Stefan Seyfried
R&D Team Mobile Devices | "Any ideas, John?"
SUSE LINUX Products GmbH, Nürnberg | "Well, surrounding them's out."
This footer brought to you by insane German lawmakers:
SUSE Linux Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
More information about the Pm-utils
mailing list