From 1d6562bbd338a41e26c294b8ac24db9e4293c646 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 6 Feb 2023 10:01:27 +0100 Subject: [PATCH] bugfix in std::remove_path() --- Pmodules/libstd.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pmodules/libstd.bash b/Pmodules/libstd.bash index 0b5121a..e80af38 100644 --- a/Pmodules/libstd.bash +++ b/Pmodules/libstd.bash @@ -117,7 +117,7 @@ std::remove_path() { shift 1 local -ar dirs="$@" local new_path='' - local -r _P=( ${!P//:/ } ) + local -r _P=( ${P//:/ } ) local dir='' for dir in "${dirs[@]}"; do # loop over all entries in path