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

Markus Neteler neteler at osgeo.org
Wed Oct 21 16:13:10 EDT 2009


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

See also (un)related:
https://launchpad.net/bugs/434047

[neteler at localhost ~]$ pgrep -c
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]
[neteler at localhost ~]$ echo $?
0

?
Markus


More information about the grass-dev mailing list