Incorrect getopts line in shell script
Bug #448782 reported by
Al Dimond
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qprof (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: qprof
I'm using qprof-0.
On line 22 of /usr/bin/qprof I had:
while getopts "rvi:b:
As the -q flag takes an parameter, there should be a colon after the q. It looks like this script was written by someone either at Debian or Ubuntu, so there's probably no upstream to notify.
To post a comment you must log in.
the -q option also sets the wrong environment variable. It should set the "Q_DIR" variable not "QDIR".
I've attached a revised version of the script.