I have cross-compiled an executable from c code for an arm-based embedded system. When I execute the binary in the embedded system, it gives the following error:
line 1: syntax error: unexpected word (expecting ")")
I searched around, and figured out it is because the embedded system (some version of Linux) I am using does not have bash but only sh. Is it possible to make my compiled binary executable using sh, without installing bash in it (which is troublesome)?
sheven parse it?./myprog.cinstead of./myprog_bin./myprog_bininstead of./myprog.c. Even a simple one hello world program has such issue.file myprog_binto find out what the operating system thinks the file is.