Linux Operating System (MOSC)

MOSC Banner

must run in a Shell using SH

edited Mar 21, 2023 5:25AM in Linux Operating System (MOSC) 2 commentsAnswered

As instructed in a Readme for an Oracle patch, the instruction is to explicitally use a given command:

sh command.sh

Now, the script itself has a shebang to SH, first line states : #!/bin/sh

My question is this : how would it behave differently, if I call it like this:

command.sh

The Shell I'm in would probably be a Bash shell, or a Bourne Shell even, but I assume all of that is not relevant even. I don't understand why a script should be called like that, IF the script itself contains a command to force using a given shell in the first place. And, the script and the instructions come from the same vendor.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center