Skip to main content
added 164 characters in body
Source Link

I'm using Ubuntu 14.04.02 32bit.

On doing some shell programming, I found out that running the script through the sh command sometimes cause errors.

Is it because the sh command is invoking the dash shell instead of #!/bin/bash ?

I'm having trouble with the select command.

It goes well when I execute it by ./scriptName.sh, but sh scriptName.sh reports syntax errors. Why is this happening?

I'm using Ubuntu 14.04.02 32bit.

On doing some shell programming, I found out that running the script through the sh command sometimes cause errors.

Is it because the sh command is invoking the dash shell instead of #!/bin/bash ?

I'm using Ubuntu 14.04.02 32bit.

On doing some shell programming, I found out that running the script through the sh command sometimes cause errors.

Is it because the sh command is invoking the dash shell instead of #!/bin/bash ?

I'm having trouble with the select command.

It goes well when I execute it by ./scriptName.sh, but sh scriptName.sh reports syntax errors. Why is this happening?

Source Link

Some commands not working in bash script

I'm using Ubuntu 14.04.02 32bit.

On doing some shell programming, I found out that running the script through the sh command sometimes cause errors.

Is it because the sh command is invoking the dash shell instead of #!/bin/bash ?