Mailinglist Archive: opensuse (2886 mails)
| < Previous | Next > |
Re: [SLE] Shell Scripting Problem
- From: "Victor R. Cardona" <vcardon@xxxxxxxx>
- Date: Mon, 11 Feb 2002 12:57:41 -0600
- Message-id: <20020211125741.A29651@xxxxxxxxxxxxxxxxxxxxxxxx>
On Fri, Feb 08, 2002 at 01:42:54PM -0500, Stephen H Carbin wrote:
> AHA! thanks JW, I think it's starting to make sense to me. First, when I
> said "chsh" , what i meant was the"change_shell" command... isn't it chsh?
Sorry this is so late.
chsh will change the user's shell. It does not affect which shell
scripts run under. UNIX shell scripts tell the system which shell it
should use to execute them with a special first line. For example:
#!/bin/sh
would execute the standard bourne shell on UNIX, but typically it calls
Bash on Linux. In your case, the latter is happening, because /bin/sh is
a symlink to /bin/bash.
HTH,
-v
--
Victor R. Cardona
Powered by SuSE Linux 7.1 (i386) Professional
GPG key ID E81B3A1C
Key fingerprint = 0147 A234 99C3 F4C5 BC64 F501 654F DB49 E81B 3A1C
> AHA! thanks JW, I think it's starting to make sense to me. First, when I
> said "chsh" , what i meant was the"change_shell" command... isn't it chsh?
Sorry this is so late.
chsh will change the user's shell. It does not affect which shell
scripts run under. UNIX shell scripts tell the system which shell it
should use to execute them with a special first line. For example:
#!/bin/sh
would execute the standard bourne shell on UNIX, but typically it calls
Bash on Linux. In your case, the latter is happening, because /bin/sh is
a symlink to /bin/bash.
HTH,
-v
--
Victor R. Cardona
Powered by SuSE Linux 7.1 (i386) Professional
GPG key ID E81B3A1C
Key fingerprint = 0147 A234 99C3 F4C5 BC64 F501 654F DB49 E81B 3A1C
| < Previous | Next > |