From 6ea41b32499a3a280fb739d56cf0820d8acd3814 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luc=C3=ADa=20Andrea=20Illanes=20Albornoz?= Date: Tue, 14 Mar 2023 07:09:04 +0100 Subject: subr.rtl/rtl_list.subr:rtl_lfilter{,2}(): fix bug when ${_rlf2_filter} is empty. --- subr.rtl/rtl_list.subr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subr.rtl') diff --git a/subr.rtl/rtl_list.subr b/subr.rtl/rtl_list.subr index 0debe62c..793eccac 100644 --- a/subr.rtl/rtl_list.subr +++ b/subr.rtl/rtl_list.subr @@ -52,7 +52,7 @@ rtl_lfilter2() { fi; if [ "${_rlf2_filter:+1}" != 1 ]; then - eval ${_rlf2_rlist_new}=; + eval ${_rlf2_rlist_new}="\${${_rlf2_rlist}}"; else eval _rlf2_list='${'"${_rlf2_rlist}"'}'; eval ${_rlf2_rlist_new}=; -- cgit v1.2.3