I'm using an Adduser perl script that came from a FreeBSD system on a Solaris 8 system and have tweeked most everything except that a couple of commands only work in a bash shell but the script tries (and fails) to run them in a Bourne (sh) shell.
I've set root' default shell to bash and tried a couple of ways in the script to set the shell:
$ENV{SHELL} = "/usr/local/bin/bash";
$shell = $ENV{'SHELL'};
Neither work. Can anyone assist in what I thought was a simple problem?
I've set root' default shell to bash and tried a couple of ways in the script to set the shell:
$ENV{SHELL} = "/usr/local/bin/bash";
$shell = $ENV{'SHELL'};
Neither work. Can anyone assist in what I thought was a simple problem?