Mailinglist Archive: opensuse-bugs (5243 mails)

< Previous Next >
[Bug 806628] Bash doesn't execute a script w/o the #! line as user's shell but as /bin/sh

--- Comment #9 from L. A. Walsh <suse@xxxxxxxxx> 2013-03-11 02:45:49 PDT ---
As for you assertion that any any csh /tcsh script writer writing a casual
script in their language isn't not going to be harmed if it is executed in
their own language. Even the stupidest of users know to run a script in a
different language with a different interpreter.

They are in a shell environment. Their mindset for writing casual scripts is
in that shell language. They are more likely to because problems by having it
interpreted as /bin/sh than as their own script language.

As you said -- any official scripts would have the shebang, so it's a non
issue. It's only the case for casual use scripts where they are trying to
automate something and have graduated to defining it as a 'executable'

I.e. a script run under a shell without specification should run under that

Configure bugmail:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >