The shellscript is very simple:
retroarch $* -c /tmp/retroarch/Data/retroarch/gambatte.cfg
("retroarch" is another shellscript)
If the filename passed contains spaces it fails:
RetroArch [ERROR] :: Could not read ROM file.
The shellscript is very simple:
retroarch $* -c /tmp/retroarch/Data/retroarch/gambatte.cfg
("retroarch" is another shellscript)
If the filename passed contains spaces it fails:
RetroArch [ERROR] :: Could not read ROM file.
Use quotes.
Instead of
yourcommand some file.name
use
yourcommand "some file.name"
When using variables, quote them as well.
yourcommand "$filename"
yourcommand "$@"
...
In general you have to either escape the spaces with backslashes () or wrap the path in either single quotes (') or double quotes (").
$ retroarch "$*" -c /tmp/retroarch/Data/retroarch/gambatte.cfg