Bug 129720 - htt loops for unknown options
htt loops for unknown options
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: im-sdk (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Akira TAGOH
: i18n
Depends On:
Blocks: IIIMF
  Show dependency treegraph
 
Reported: 2004-08-11 22:46 EDT by Jens Petersen
Modified: 2007-11-30 17:10 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-08-29 23:58:15 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jens Petersen 2004-08-11 22:46:01 EDT
Description of problem:
htt, the wrapper to htt_server, just seems to pass on all option
args to htt_server and for unknown option the output loops forever.

Package version:
11.4-69.svn1856

How reproducible:
every time

Steps to Reproduce:
1. htt -h
2. htt --help
  
Actual results:
htt loops forever with:

:
htt_server [-d] [-lcbasiclocale localename]
           [-ifpath_name ifpath] [-if ifname]
           [-port portnumber] [-hostname hostname]
           [-conversionkeys keys]

htt_server [-d] [-lcbasiclocale localename]
           [-ifpath_name ifpath] [-if ifname]
           [-port portnumber] [-hostname hostname]
           [-conversionkeys keys]

:

Expected results:
The output to only appear once.

Additional info:
Presumably htt_server returns an error for a bad option, causing
htt to retry again and again.
Comment 1 Akira TAGOH 2004-08-17 00:45:25 EDT
should be fixed in -70.svn1856. please confirm it.
Comment 2 Jens Petersen 2004-08-17 03:39:45 EDT
Thanks.

It would be nice if htt printed out a error message too for
unknown options like htt_server does.
Comment 3 Lawrence Lim 2004-08-27 00:31:48 EDT
In the current rawhide 12.0.1-1, the command htt --help only display a
single line 'Usage: htt [-retryonerror NUM]' unlike 

htt_server [-d] [-lcbasiclocale localename]
           [-ifpath_name ifpath] [-if ifname]
           [-port portnumber] [-hostname hostname]
           [-conversionkeys keys]

Is this the correct behaviour?
Comment 4 Akira TAGOH 2004-08-27 01:31:45 EDT
Yes, right. but according to jens's suggestion, it will be changed.
Comment 5 Lawrence Lim 2004-08-29 23:58:15 EDT
Confirmed that the loop problem has been resolved in rawhide
(im-sdk-12.0.1-1).

Filed bug 131216 in regards to the error message.

Note You need to log in before you can comment on or make changes to this bug.