On Feb 8, 2008 11:56 AM, Victor Lowther <[EMAIL PROTECTED]> wrote:
>
> > > +       grep -q mem /sys/power/state; return $?
> >
> > `grep -q' is a GNU grepism. Just redirect to stdout to /dev/null. We
> > do want to see stderr, though, to know if /sys/power/state doesn't
> > exist.
>
> -q is a GNUism?  It is defined in
> http://opengroup.org/onlinepubs/007908799/xcu/grep.html

Huh. Drop those comments, then. I think we can expect people to use a
POSIX grep.

--
Dan
_______________________________________________
Pm-utils mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pm-utils

Reply via email to