From 34eeaf1a6548710a7f9496be2e4ca71acb0c6be2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luc=C3=ADa=20Andrea=20Illanes=20Albornoz?= Date: Tue, 28 Mar 2023 12:47:20 +0200 Subject: Fix printing of package variables in ./pkgtool.sh -i. --- subr.rtl/rtl_platform.subr | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'subr.rtl') diff --git a/subr.rtl/rtl_platform.subr b/subr.rtl/rtl_platform.subr index d3ba8f56..a58b71a3 100644 --- a/subr.rtl/rtl_platform.subr +++ b/subr.rtl/rtl_platform.subr @@ -111,21 +111,6 @@ rtl_get_var_unsafe() { return 0; }; -# -# rtl_get_vars_unsafe_fast() - get values of multiple variables w/ pattern -# @_pattern: pattern to match against set output -# -# Returns: zero (0) on success, non-zero (>0) on failure, matching variable values on stdout -# N.B.: This function is *unsafe* and impossible to implement otherwise w/o parsing set -# output properly and may produce spurious data. -# -rtl_get_vars_unsafe_fast() { - local _rgvuf_pattern="${1}"; - - set | awk -F= '/'"${_rgvuf_pattern}"'/{print $1}' | sort; - return 0; -}; - # # rtl_kill_tree() - kill tree of processes # @_rpids: inout reference to list of PIDs -- cgit v1.2.3