pgrep cannot match some long filenames
Bug #113096 reported by
Mike Donovan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
procps (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: procps
pgrep has a bug in trying to match:
- a script with a long filename
- and its filename ends in a number
Example:
name this "myscriptwithal
#!/bin/sh
sleep 100000
chmod u+x myscriptwithalo
./myscriptwitha
pgrep myscriptwithalo
[shows nothing]
ps -eF | grep myscriptwithalo
[will find the script]
This bug appears in Ubuntu Feisty Fawn.
Changed in procps: | |
status: | Unconfirmed → Confirmed |
To post a comment you must log in.
I can replicate this.
It seems to be only seeing the first 15 characters of the script name.
pgrep myscriptwithalo
[shows PID]
pgrep myscriptwithalon
[shows nothing]
Is it using the output from ps -e? This seems to truncate the commands after 15 characters.