Martin Simmons wrote on 10/6/21 3:39 PM:
On Tue, 5 Oct 2021 11:21:46 -0400, Dan Langille said:
Must I be running the bash shell to invoke regression testing?
You don't have to be running bash yourself -- the #! makes it run bash.

Yes, but $SHELL is not necessary the shell currently executing. It is an environment variable:

[pro02 dan ~] % echo $SHELL 16:38:28
/bin/zsh
[pro02 dan ~] % bash 16:38:32
[dan@pro02:~] $ echo $SHELL
/bin/zsh


                                                                If so, why?
It is because the script uses some bash extensions.  Two that I can see are

((JOBID++))

and

ERRS=$((`grep "joberrors: " ${tmp}/blog${ltest}.out | awk '{print $2}'`+0))

I'm not asking why the script requires bash. My answer above shows why.

--
Dan Langille
d...@langille.org : https://langille.org/


_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to