MantisBT - Zandronum
View Issue Details
0001562Zandronum[All Projects] Bugpublic2013-10-29 12:052018-09-30 22:43
afullo 
Blzut3 
normalminoralways
closedfixed 
LinuxUbuntu12.04 x86-64
1.2 
 
0001562: Zandronum on Ubuntu does not pass PWADs while path contains spaces
Playing on Ubuntu, I simply tried to entering in a server and, after having downloaded all the PWADs required, the execution did not continue after reporting that the server had a certain number of WADs (the ones I just dl) which I, from his perspective, was missing.

I noticed that the path where he downloaded, also included in the folders in which he would search for WADs, contained some spaces, so I move my files into another folder without them in the name. This fixed the problem.
No tags attached.
Issue History
2013-10-29 12:05afulloNew Issue
2013-10-29 22:02ZalewaNote Added: 0007489
2013-10-30 00:51skyrimguyNote Added: 0007490
2013-10-30 00:58skyrimguyNote Edited: 0007490bug_revision_view_page.php?bugnote_id=7490#r4176
2013-10-30 01:14skyrimguyNote Edited: 0007490bug_revision_view_page.php?bugnote_id=7490#r4177
2013-10-30 01:31skyrimguyNote Edited: 0007490bug_revision_view_page.php?bugnote_id=7490#r4178
2013-10-30 09:48afulloNote Added: 0007491
2013-10-30 18:35Edward-sanNote Added: 0007493
2013-10-30 18:36Edward-sanNote Edited: 0007493bug_revision_view_page.php?bugnote_id=7493#r4180
2013-10-30 18:43Edward-sanNote Edited: 0007493bug_revision_view_page.php?bugnote_id=7493#r4181
2013-10-30 18:43Edward-sanNote Edited: 0007493bug_revision_view_page.php?bugnote_id=7493#r4182
2013-10-30 18:59Torr SamahoNote Added: 0007494
2013-10-30 20:46skyrimguyNote Added: 0007495
2013-10-30 20:50skyrimguyNote Edited: 0007495bug_revision_view_page.php?bugnote_id=7495#r4184
2013-10-30 21:09skyrimguyNote Edited: 0007495bug_revision_view_page.php?bugnote_id=7495#r4185
2013-10-30 21:10skyrimguyNote Edited: 0007495bug_revision_view_page.php?bugnote_id=7495#r4186
2013-10-30 22:49Blzut3Note Added: 0007496
2013-10-30 22:49Blzut3Statusnew => resolved
2013-10-30 22:49Blzut3Resolutionopen => fixed
2013-10-30 22:49Blzut3Assigned To => Blzut3
2018-09-30 22:43Blzut3Statusresolved => closed

Notes
(0007489)
Zalewa   
2013-10-29 22:02   
Confirmed in Zandronum 1.2. Following command line won't load udmx.wad:
/usr/bin/zandronum -iwad /home/test/.zandronum/doom2.wad -file '/home/test/Katalog ze spacja/udmx.wad'
(0007490)
skyrimguy   
2013-10-30 00:51   
(edited on: 2013-10-30 01:31)
I can also reproduce the problem with the latest version of ZDoom (2.8pre-237-g7dbf4ec) on Linux. This problem also applies to IWADs.

(0007491)
afullo   
2013-10-30 09:48   
If I am not wrong, I see from skyrimguy's link that the use of \ into command line (regardless of the fact that by acting with a purely graphical procedure, i.e. by opening Doomseeker via interface and selecting the server from the list as usual, without the need of opening a terminal, the backslash is inserted or not), does not fix.
(0007493)
Edward-san   
2013-10-30 18:35   
(edited on: 2013-10-30 18:43)
This is not a zdoom/zandronum bug but a linux feature.

When you want to invoke the folder with the space, you should use '\ ' in place of the space in the folder name. Like this:

/usr/bin/zandronum -iwad /home/test/.zandronum/doom2.wad -file /home/test/Katalog\ ze\ spacja/udmx.wad


Also, when you write a command in the terminal, if you press twice the 'tab' key, you should be able to autocomplete/see the list of the file names.

[edit]just saw the other comments ... strange. I'll test it.

[edit2]I can't reproduce if I run zandronum from /usr/games/zandronum folder. Sounds like a linking problem ...

(0007494)
Torr Samaho   
2013-10-30 18:59   
Quote from Zalewa

/usr/bin/zandronum -iwad /home/test/.zandronum/doom2.wad -file '/home/test/Katalog ze spacja/udmx.wad'


AFAIK this is simply not the proper way to feed a path with spaces to a Linux binary. Spaces should be escaped like Edward-san said.
(0007495)
skyrimguy   
2013-10-30 20:46   
(edited on: 2013-10-30 21:10)
Solution:

Edit /usr/bin/zandronum and change $*

LD_LIBRARY_PATH=/usr/games/zandronum /usr/games/zandronum/zandronum $*

to "$@"

LD_LIBRARY_PATH=/usr/games/zandronum /usr/games/zandronum/zandronum "$@"

save change and try the following:
Folder names:

I W A D $ & ( )


P W A D $ & ( )

IWAD: doom2.wad
PWAD: hr2final.wad

zandronum -iwad '/home/<your username>/.zandronum/I W A D $ & ( )/doom2.wad' -file '/home/<your username>/.zandronum/P W A D $ & ( )/hr2final.wad'


zandronum -iwad /home/<your username>/.zandronum/I\ W\ A\ D\ \$\ \&\ \(\ \)/doom2.wad -file /home/<your username>/.zandronum/P\ W\ A\ D\ \$\ \&\ \(\ \)/hr2final.wad

it should work now.

(0007496)
Blzut3   
2013-10-30 22:49   
Quote from Torr Samaho
AFAIK this is simply not the proper way to feed a path with spaces to a Linux binary. Spaces should be escaped like Edward-san said.

Anything that tells the command line tokenizer that a parameter has a space in it will work. Be it double quotes (evaluates variables), single quotes (in case your path has $ characters in it), or escaping.

I've issued an update to the packages with skyrimguy's suggestion. (On a related note: while having spaces in a path isn't a technical problem, but I would still recommend kicking the habit. If one gets into advanced terminal usage they will make life difficult.)