List of issuesList of issues

#681 Linux quoted parameters from other script not parsed as single file
Author: user loki
Date created:
Type: bug
Visibility: Everybody
Assigned to: admin JPEXS
Labels: LineEndingsLinux
State: closed Help

> What steps will reproduce the problem? In a bash script, build an array of parameters to pass to ffdec.sh. Then launch ffdec.sh "${ARRAY[@]}". > What is the expected output? What do you see instead? The parameters are split up like this: 21.:"/home/kev/word-realms-mods/mods/Original 22.:in 23.:Italian/Word.PFR.2017.pcode" instead of like this: 13.:/home/kev/word-realms-mods/mods/Original in Italian/Word.PFR.2017.pcode ...and even if you add extra quotes around such paths, you get things like this: 13.:"/home/kev/word-realms-mods/mods/Original in Italian/Word.PFR.2017.pcode" or like this: 13.:'/home/kev/word-realms-mods/mods/Original in Italian/Word.PFR.2017.pcode' ...which inevitably cause ffdec to fail with "I/O error during reading". > What version of the product are you using? On what operating system? Latest nightly on Mint 16. > Please provide any additional information below. Attach the file you have problem with if neccessary. If you do not want to publish files YOU CAN CHANGE VISIBILITY TO PRIVATE I'm not sure how I had done this before and not had a problem...perhaps I had replaced the nightly and then happened to not test with a space-filled path. Anyway, it's easy to fix, just change the very first line of ffdec.sh from: #!/bin/sh to: #!/bin/bash
user
Thanks for including this fix in the latest nightlies; however, the file got saved with Windows line endings, so trying to launch in Linux gives the error: ^M: bad interpreter: No such file or directory
admin
thanks, it should be ok now (latest nightly)
State: new→upgraded
Assigned:admin JPEXS
admin
State: upgraded→closed
 
Google Translate: Translate to Czech Translate to Slovak Translate to Russian Translate to Hungarian Translate to Swedish Translate to French Translate to German Translate to Spanish Translate to Italian
Change style: oceanic classic