scummvm language auto-detection (was doom3bfg)

Alexandre Detiste alexandre.detiste at gmail.com
Fri Jun 26 08:18:32 UTC 2015


> I don't understand this. The bash syntax should strictly be a superset
> of the Bourne syntax which dash exclusively supports. I have read many
> bug reorts about "bash-isms" that are incompatible with dash but none
> yet about "bourne-isms" that are incompatible with bash.
>
> Also, if there is spurious syntax in the scripts, it will be better to
> fix it to be portable instead of changing shebang lines. ;)
>
> - Fabian

There is indeed something....
I need to replace "return" by "break" everywhere.


tchet at antec:~$ cat bin/scummvm
#!/bin/sh
echo SCUMMVM $@
tchet at antec:~$ kyrandia2
SCUMMVM -q fr -p /usr/share/games/kyrandia2 kyra2
tchet at antec:~$ LANG=C bash kyrandia2
/usr/games/kyrandia2: line 15: return: can only `return' from a
function or sourced script
/usr/games/kyrandia2: line 15: return: can only `return' from a
function or sourced script
/usr/games/kyrandia2: line 13: return: can only `return' from a
function or sourced script
/usr/games/kyrandia2: line 16: return: can only `return' from a
function or sourced script
SCUMMVM -q fr fr en en -p /usr/share/games/kyrandia2 kyra2



More information about the Pkg-games-devel mailing list