[GRASS-dev] Unclean exit in 6.5: pgrep issue

Markus Neteler neteler at osgeo.org
Sat Nov 7 16:38:20 EST 2009


On Thu, Oct 22, 2009 at 4:49 PM, Glynn Clements
<glynn at gclements.plus.com> wrote:
>
> Markus Neteler wrote:
>
>> I updated 6.5 after some time and recompiled. Leaving it, I discovered:
>>
>> Closing monitors ...
>> pgrep: invalid option -- 'c'
>> Usage: pgrep [-flvx] [-d DELIM] [-n|-o] [-P PPIDLIST] [-g PGRPLIST] [-s SIDLIST]
>>         [-u EUIDLIST] [-U UIDLIST] [-G GIDLIST] [-t TERMLIST] [PATTERN]
>> /home/neteler/grass65/dist.x86_64-unknown-linux-gnu/etc/Init.sh: line
>> 1026: [: -ge: unary operator expected
>> Cleaning up temporary files ...
>> Done.
>>
>> pgrep -c doesn't seem to be portable (using here Mandriva 2009.1). Introduced in
>> http://trac.osgeo.org/grass/changeset/39479
>
> pgrep itself isn't remotely portable, and shouldn't be used.

Should I revert the change?

Markus


More information about the grass-dev mailing list