Bug 92335
| Summary: | htmlview can't open files with names which include spaces | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Moritz Barsnick <moritz> | ||||
| Component: | htmlview | Assignee: | Warren Togami <wtogami> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | |||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | rawhide | ||||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2005-04-25 04:53:03 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: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 100644 | ||||||
| Attachments: |
|
||||||
Created attachment 106013 [details]
patch to allow htmlview to handle file names with whitespace
Still the same problem 17 months later in version 3.0.0-8. Here's a patch.
If you really don't want to allow multiple file names to be passed, try "$1".
OTOH "$*" will fail when getting multiple files and one of them contains spaces
(but I haven't checked whether the script passes this kind of arg to this
code).
warren is NOT my address. Thanks. |
Description of problem: htmlview fails to open files with names which have spaces or special chars. File names with spaces are passed as separated arguments. Version-Release number of selected component (if applicable): 2.0.0-9 How reproducible: always Steps to Reproduce: 1. htmlview "/path/to/file name with spaces.html" (or any proper quoting) 2. 3. Actual results: File is not displayed, because the called viewer sees "htmlview /path/to/file" Expected results: File is displayed. Additional info: This is very obviously the classic $* vs. "$@". "$@" ist the correct way to pass "all arguments". There are three "exec" calls where this needs to be fixed. I can provide a patch, but I guess you won't need it. ;-) Just be sure to use "$@" _with_ the double quotes!