YOU ARE RIGHT!
CoreELEC:~/downloads # hexdump -C test.sh
00000000 23 21 2f 62 69 6e 2f 73 68 0a 65 63 68 6f 20 e2 |#!/bin/sh.echo .|
00000010 80 9c 48 65 6c 6c 6f 20 77 6f 72 6c 64 21 e2 80 |…Hello world!..|
00000020 9d |.|
00000021
CoreELEC:~/downloads #
dos2unix is useful here:
CoreELEC:~/downloads # ./test.sh
-sh: ./test.sh: /bin/sh: bad interpreter: Text file busy
CoreELEC:~/downloads # dos2unix test.sh
CoreELEC:~/downloads # ./test.sh
“Hello world!”
CoreELEC:~/downloads #
Perhahs dos2unix is necessary here because I create the script from samba / Windows 10?