Roman Haefeli wrote:
On Fri, 2008-04-11 at 15:46 +0100, Rob Canning wrote:
IOhannes m zmoelnig wrote:
Rob Canning wrote:
hello IEMers!
which default shell are you using? (do "ls -l /bin/sh")
just in case it is _not_ bash, change the first line of CUBEmixer.sh to "#!/bin/bash"
Hi IOhannes, It is bash
lrwxrwxrwx 1 root root 4 2008-04-03 19:13 /bin/sh -> bash
if i change line one to "#!/bin/bash" i get :
bash: ./CUBEmixer.sh: /bin/bash^M: bad interpreter: No such file or directory
i get the same error if i simply type ./CUBEmixer.sh witht the first line as "#!/bin/sh"
if i type either "sh CUBEmixer.sh" or "bash CUBEmixer.sh" i get
rob@shuttle:~/CUBEmixer/bin$ bash CUBEmixer.sh : command not found2: : command not found3: : command not found4: 'UBEmixer.sh: line 11: syntax error near unexpected token
{ 'UBEmixer.sh: line 11:
function test_pd() {just a quick guess:
could this be related to some newline/return character incompatibilities between the file and the operating system?
it seems strange that the first 'C' of 'CUBEmixer.sh' seems to be eaten.
if i type sh ./CUBEmixer.sh the C gets eaten if i type sh CUBEmixer.sh (without ./) the C doesn't get eaten maybe that is my mistake - but either way i get errors
cheers rob c