Hi
I get the error
./sansa.sh: 38: Syntax error: “(” unexpected
if I execute your script
this is because of the function definition
“function debug_echo ()”
if I change the first line in the script to #!/bin/bash instead of #!/bin/sh, it works. So the shell sh on my system does not support ths function declaration.
Moreover, I get
iconv: illegal input sequence at position 843
iconv: illegal input sequence at position 8882
and some more iconv error messages, but I havent checked yet what’s the problem
I was wondering if you have v1 or v2 of the sansa player?
@ Derek
I have a E260.
System Version : 01.02.18A
Hi
I get the error
./sansa.sh: 38: Syntax error: “(” unexpected
if I execute your script
this is because of the function definition
“function debug_echo ()”
if I change the first line in the script to #!/bin/bash instead of #!/bin/sh, it works. So the shell sh on my system does not support ths function declaration.
Moreover, I get
iconv: illegal input sequence at position 843
iconv: illegal input sequence at position 8882
and some more iconv error messages, but I havent checked yet what’s the problem
Cheers
@SansaUser
good catch, it is a BASH script. So changing
#!/bin/sh
to
#/bin/bash
is the way to go.
Not sure about the iconv errors, though.