From 6ea41b32499a3a280fb739d56cf0820d8acd3814 Mon Sep 17 00:00:00 2001 From: LucĂ­a Andrea Illanes Albornoz Date: Mar 14 2023 06:09:04 +0000 Subject: subr.rtl/rtl_list.subr:rtl_lfilter{,2}(): fix bug when ${_rlf2_filter} is empty. --- diff --git a/subr.rtl/rtl_list.subr b/subr.rtl/rtl_list.subr index 0debe62..793ecca 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}=;