#1109546 using a regexp as a pattern fails (e.g. backup2l -l ' /.*txt')

Package:
backup2l
Source:
backup2l
Submitter:
Marvin Renich
Date:
2025-07-19 20:07:02 UTC
Severity:
normal
Tags:
#1109546#5
Date:
2025-07-19 19:59:28 UTC
From:
To:
The man page for backup2l says grep is used to filter the list of files
for --get-available, --locate, and --restore.  It even suggests
prepending ' /.*' to the pattern to match only file names.  However, the
script sets shopt -s nullglob, which causes the for loop (on line 930 in
the current testing version) in get_location to not execute its body,
which means the $TMP.left file is not created.

Since this script is bash, rather than /bin/sh, the simple fix is to use
an array for MASK_LIST.  I have attached a patch.

...Marvin