0

I try to run a script which has

#!/bin/bash

but i am getting error as "Illegal option --"
/bin/sh is not bash , aborting

. i try to change the first line to

 #!/bin/sh

this time it is saying
x: unexpected operator

i tried runnigscript with ./ and sh, but both are failing.

please help.

3
Contributors
4
Replies
23
Views
4 Years
Discussion Span
Last Post by rch1231
0

Hello,

In order to help we will need three things:
A listing of the shell script with the permissions on the file.
A listing of the code in the file.
The actual command line you are using to call the script.

0

So you are calling bash from the correct location it has to be in your script. Can you give us the command line you are using and the script to look at or we wont be able to help.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.