Incorrect getopts line in shell script

Bug #448782 reported by Al Dimond
10
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.5.2-5ubuntu1

On line 22 of /usr/bin/qprof I had:

while getopts "rvi:b:g:a:w:c:e:o:sqh"

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.

Revision history for this message
allanlw (allanlw) wrote :

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.