GNOME Bugzilla – Bug 696854
xmllint --path option and spaces
Last modified: 2021-07-05 13:25:58 UTC
When invoking xmllint with --path option, it is not possible to add a directory which contains spaces. Space is considered as separator. In parsePath() function in xmllint.c, is it possible to remove test against ' ' char? Thank you.
Created attachment 240491 [details] [review] patch for xmllint.c file
Hum, the problem is that it would break existing use (in scripts etc ...) where space is used to separate, that's a common practice. A better solution would be to allow the use of escaping with \ to allow the separator characters to be passed. --path "foo\ bar" though on Windows that would break paths like "c:\ foo" but space at the beginning of a directory is uncommon, and \ could be escaped itself as in "c:\\ foo" not completely trivial, Daniel
*** Bug 382527 has been marked as a duplicate of this bug. ***
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/libxml2/-/issues/ Thank you for your understanding and your help.