--quiet flag does not work (in fact does nothing)

Bug #1260542 reported by Jon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unrtf (Ubuntu)
New
Undecided
Unassigned

Bug Description

Also reported at https://bugs.launchpad.net/ubuntu/+source/unrtf/+bug/489128/comments/4 but I thought a new bug report was in order.

I can also confirm that the "--quiet" flag has no effect on version 0.21.5. Searching for "quiet" in the code base I can see that it's fetched and set as an option (main.c), but it's never used in the code base to suppress comments or meta.

Further, it doesn't appear that the "--quiet" flag is shown in the usage help:

[me] unrtf-0.21.5 $/usr/local/bin/unrtf --version
0.21.5
search path is: /usr/local/share/unrtf/
 [me] unrtf-0.21.5 $/usr/local/bin/unrtf --help
Usage: unrtf [--version] [--verbose] [--help] [--nopict|-n] [--noremap] [--html] [--text] [--vt] [--latex] [--rtf] [-P config_search_path] [-t <file_with_tags>)] <filename>

And here is the output of using the quiet flag which proves that it does nothing for a sample RTF file (attached to this report):

[me] unrtf-0.21.5 $/usr/local/bin/unrtf --quiet --text sample.rtf
### Translation from RTF performed by UnRTF, version 0.21.5
### font table contains 29 fonts total

TITLE: This is a test RTF

AUTHOR: Nate

-----------------
This is a test RTF
Hi! Im a test file. This is some bold text, and some italic text, as well as some underline text. And a bit of hidden text. So were going to end this paragraph here and go on to a nice little list:

"
Item 1
"
Item 2
"
Item 3
"
Item 4

And now comes a fun table:

 Cell 1 Cell 2
More in cell 2 Cell 3
 Next row Next row Next row

A page break:

And here were on the next page.
This para has a This is the actual content of the footnote.footnote.
And heres yet another paragraph.

Here is the output of grepping the codebase that shows no implementation of the quiet flag in src

[me] unrtf-0.21.5 $grep -nri "quiet" .
./INSTALL:348:`--quiet'
./ChangeLog:2: - added '--quiet' flag which suppresses leading comments in output
./config.status:410: -q, --quiet, --silent
./config.status:499: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
./doc/unrtf.1:22:.BI [\-\-quiet]
./doc/unrtf.1:82:\-\-quiet
./configure:1027: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
./configure:1295: -q, --quiet, --silent do not print \`checking ...' messages
./configure:1882: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
./configure:1898: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
./configure:5010: -q, --quiet, --silent
./configure:5104: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
./configure:5884: ac_config_status_args="$ac_config_status_args --quiet"
Binary file ./src/unrtf matches
./src/main.c:53: * 14 Dec 11, <email address hidden>: cleaned up get_config added --quiet
./src/main.c:100:int quiet; /* TRUE => don't output header comments */
./src/main.c:166: else if (!strcmp("--quiet", argv[i])) quiet = TRUE;
Binary file ./src/main.o matches

Tags: quiet
Revision history for this message
Jon (jonathan-b-ingram) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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