[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#918431: Don't insert the regular expression we used with -f after File:



Package: reportbug
Version: 7.5.1

$ set /usr/share/bash-completion/completions/find
$ reportbug --template --file $@
Finding package for '/usr/share/bash-completion/completions/find'...
Please re-run reportbug selecting one of these packages:
  bash-completion
  util-linux
$ dlocate $@
bash-completion: /usr/share/bash-completion/completions/find
bash-completion: /usr/share/bash-completion/completions/find_member
util-linux: /usr/share/bash-completion/completions/findfs
util-linux: /usr/share/bash-completion/completions/findmnt
$ reportbug --template $@$ 2>/dev/null |grep File
File: /usr/share/bash-completion/completions/find$
$ man reportbug|sed ...

       -f FILENAME, --filename=FILENAME
              Report a bug in the package containing FILENAME so you
              don't have to figure out what package the file belongs to.
              The path will be searched for an exact path for FILENAME
              before attempting to broaden the search to all files. If
              dlocate is installed, FILENAME is actually a regular
              expression.

As we see since dlocate is installed, we are forced to use a regular
expression in this case. However when the single match is finally found,
reportbug, after "File: ", instead of properly inserting the single
filename found, instead inserts the raw regular expression we started
out with in the beginning!


Reply to: