Re: regression testing & python2

Dan Langille <[email protected]> Wed, 6 Oct 2021 16:40:14 -0400
Newsgroups gmane.comp.sysutils.backup.bacula.devel
Message-ID <[email protected]>
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
[email protected] : https://langille.org/