#2043 PR merged
: adding clear to PROGS array¶
Labels: enhancement
, fixed / solved / done
gdha opened issue at 2019-02-15 16:44:¶
Signed-off-by: Gratien D'haese gratien.dhaese@gmail.com
Pull Request Details:¶
-
Type: Enhancement
-
Impact: Low
-
Reference to related issue (URL): #2040
-
Brief description of the changes in this pull request:
clear
is a handy little tool to clear the console
jsmeix commented at 2019-02-18 08:35:¶
By the way in general about usr/share/rear/conf/GNU/Linux.conf
I wonder why therein new elements are appended
in different ways to existing arrays
sometimes as
ARRAY=( ${ARRAY[@]:-} new_element1 new_element2 ... )
and sometimes as
ARRAY=( "${ARRAY[@]}" new_element1 new_element2 ... )
or
ARRAY=( "${ARRAY[@]:-}" new_element1 new_element2 ... )
cf. usr/share/rear/conf/default.conf
https://github.com/rear/rear/blob/master/usr/share/rear/conf/default.conf#L19
# In general using ${VAR[*]} is problematic and using ${VAR[@]} without
# double-quotes is also problematic, see 'Arrays' in "man bash" and
# see https://github.com/rear/rear/issues/1068 for some examples.
[Export of Github issue for rear/rear.]