Does not run with -makeresultsfile option

Bug #1782273 reported by Lithi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rdfind (Ubuntu)
New
Undecided
Unassigned

Bug Description

The -makeresultsfile does not work:

$ rdfind -n -makeresultsfile dir1 dir2
expected true or false, not "-makeresultsfile"

$ rdfind -n -makeresultsfile true dir1 dir2
expected true or false, not "-makeresultsfile"

$ rdfind -n "-makeresultsfile true" dir1 dir2
expected true or false, not "-makeresultsfile true"

This is unacceptable. Unix command-line programs typically take options denoted by -<option> or -<option> <option flag> however for the rdfind command the makeresultsfile option clearly does not work. If for some odd reason this is actually the intended behavior of then it should be indicated in the man page!

~$ lsb_release -rd
Description: Ubuntu 18.04 LTS
Release: 18.04

$ rdfind --version
This is rdfind version 1.3.5

$ apt-cache policy rdfind
rdfind:
  Installed: 1.3.5-1
  Candidate: 1.3.5-1

Revision history for this message
Paul Dreik (pauldreik) wrote :

Hi, rdfind author here.
This is not related to -makeresultsfile, it is because -n expects a boolean argument. This is awkward, and related to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=754663.

This is fixed in the development version, not yet released. Given your first command, it gives the following response which hopefully had been of more help:
expected true or false after -n, not "-makeresultsfile"

I wish I had chosen that option not to take an argument in the first place, but I can not change it because I do not want to break backwards compatibility.

See https://github.com/pauldreik/rdfind/issues/8

Paul

Revision history for this message
Paul Dreik (pauldreik) wrote :

This is fixed in 1.4.0-alpha0, feedback welcome.
https://github.com/pauldreik/rdfind/releases/tag/releases%2F1.4.0-alpha0
Paul

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.