docbook2html doesn't work if there are spaces in the path

Bug #46716 reported by lucasvo
4
Affects Status Importance Assigned to Milestone
docbook-utils (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

should be self explaining:

lucasvo@supernova:~/Desktop/Vinci Solutions/mercury_newsletter/mercury_bzr/doc$ docbook2html index.docbook
/usr/bin/jw: line 273: [: /home/lucasvo/Desktop/Vinci: binary operator expected
Using catalogs: /etc/sgml/catalog
Using stylesheet: /usr/share/docbook-utils/docbook-utils.dsl#html
Working on: /home/lucasvo/Desktop/Vinci Solutions/mercury_newsletter/mercury_bzr/doc/index.docbook
openjade:E: cannot open "/home/lucasvo/Desktop/Vinci" (No such file or directory)
openjade:E: cannot find "Solutions/mercury_newsletter/mercury_bzr/doc/index.docbook"; tried "Solutions/mercury_newsletter/mercury_bzr/doc/index.docbook", "/usr/local/share/sgml/Solutions/mercury_newsletter/mercury_bzr/doc/index.docbook", "/usr/share/sgml/Solutions/mercury_newsletter/mercury_bzr/doc/index.docbook"
openjade:/usr/share/sgml/declaration/xml.dcl:190:1:E: end of document in prolog
/usr/bin/jw: line 436: cd: /home/lucasvo/Desktop/Vinci: No such file or directory
lucasvo@supernova:~/Desktop/Vinci Solutions/mercury_newsletter/mercury_bzr/doc$ cd
lucasvo@supernova:~$ cp Desktop/Vinci\ Solutions/mercury_newsletter/mercury_bzr/doc/ .
cp: omitting directory `Desktop/Vinci Solutions/mercury_newsletter/mercury_bzr/doc/'
lucasvo@supernova:~$ cp -r Desktop/Vinci\ Solutions/mercury_newsletter/mercury_bzr/doc/ .
lucasvo@supernova:~$ cd doc/
lucasvo@supernova:~/doc$ docbook2html index.docbook
Using catalogs: /etc/sgml/catalog
Using stylesheet: /usr/share/docbook-utils/docbook-utils.dsl#html
Working on: /home/lucasvo/doc/index.docbook
Done.
lucasvo@supernova:~/doc$

Revision history for this message
Basilio Kublik (sourcercito) wrote :

Hi there
What is the content of the index.docbook file, if you enclose the paths between double quotes does the issue persist?

Thanks

Changed in docbook-utils:
assignee: nobody → sourcercito
status: New → Incomplete
Revision history for this message
Basilio Kublik (sourcercito) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New".

Thanks again!

Changed in docbook-utils:
assignee: sourcercito → nobody
status: Incomplete → Invalid
Revision history for this message
Espen Carlsen (escarls) wrote :

I can see it's closed, but I think I have an input to what the reason for this error is.
I have CygWin installed on my WindowsXP PC and I ran into the exact same problem as the OP.

If you look closer at the informations he posted, the path where he is running this from has a space in the path.
That's why you get the error from line 273.

When I renamed the directory I was in to use "_" instead of " " in the name, I didn't get any errors.

So I guess the script doesn't work if you're working within a path containing space, as you can see from the OP:
"lucasvo@supernova:~/Desktop/Vinci Solutions/mercury_newsletter/mercury_bzr/doc$"
"/usr/bin/jw: line 273: [: /home/lucasvo/Desktop/Vinci: binary operator expected"
"openjade:E: cannot open "/home/lucasvo/Desktop/Vinci" (No such file or directory)
openjade:E: cannot find "Solutions/mercury_newsletter/mercury_bzr/doc/index.docbook"; tried "
"/usr/bin/jw: line 436: cd: /home/lucasvo/Desktop/Vinci: No such file or directory"

From this which I pasted from the OP, you can see that whenever an error happens, the script has splitted on the space and is not using the complete path.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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