Bug 620083
Summary: | whiptail --gauge does not work as advertised | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Joe Nuspl <nuspl> | ||||||
Component: | newt | Assignee: | Miroslav Lichvar <mlichvar> | ||||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | low | ||||||||
Version: | rawhide | CC: | mlichvar | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | newt-0.52.12-1.fc15 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2010-08-06 12:24:14 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Joe Nuspl
2010-07-31 19:54:07 UTC
Created attachment 435793 [details]
Simple patch to make the existing code work
Looking at the code, I think the authors intent was for the first line after XXX to be the new percentage. So the input would be of the form:
XXX
30
We're now at 30 percent complete.
XXX
I've attached a patch that makes it behave that way.
Created attachment 435794 [details]
Patch so behavior matches man page
The code as it exists does not match the behavior described in the man page.
My interpretation is that the input between XXX is just the text. The input stream would be:
20
XXX
We're now at 20 percent complete.
XXX
This attached patch implements that behaviors.
Thanks for the patches. We are trying to be compatible with dialog, so the first one is actually correct. I've pushed an updated patch (to 0.52.11) to the newt git repository and a man page description fix, so it's clear that after XXX should be a percentage. This will be in newt-0.52.12. Another issue: sleep 5 | whiptail --gauge "multi\nline" 10 40 0 will display: multi line while dialog displays: multi line With no leading space before line. Should be fixed in git now. Thanks. |