[rear-users] need testing advice - REQUIRED_PROGS containing spaces

Gratien D'haese gratien.dhaese at it3.be
Wed Oct 21 18:04:55 CEST 2015


 That should work in other situations as well - more testing required of 
 course
 Gratien

 On Wed, 21 Oct 2015 11:19:04 -0400, Robert Owens 
 <rowens at fdrinnovation.com> wrote:
> I'd like to make a change that would allow spaces in the contents of
> REQUIRED_PROGS.  This would allow checking for programs that may be
> installed in a directory containing a space.
>
> I've tested this using BACKUP=FDRUPSTREAM and it works.  But since
> this change would affect all ReaR users, and not just users of my
> company's backup product, I'm looking for advice on test cases, or
> thoughts on where this could go wrong.
>
> The change is small.  I've simply quoted the two variables in the
> has_binary function of 
> /usr/share/rear/lib/_input-output-functions.sh:
>
> # Check if any of the binaries/aliases exist
> has_binary() {
>         for bin in "$@"; do
>                 if type "$bin" >&8 2>&1; then
>                         return 0
>                 fi
>         done
>         return 1
> }
>
> Thoughts?
>
> _______________________________________________
> rear-users mailing list
> rear-users at lists.relax-and-recover.org
> http://pikachu.3ti.be/mailman/listinfo/rear-users

-- 
 Gratien D'haese
 IT3 Consultants bvba
 Vennestraat 15, B-2560 Nijlen


More information about the rear-users mailing list