From a8be6fdf648b510df84b2c95d3113f5e7c18b182 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 8 Jun 2024 16:09:18 +0200 Subject: [PATCH] cd_echo --- cd.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cd.sh b/cd.sh index e88fcac..f15b989 100644 --- a/cd.sh +++ b/cd.sh @@ -605,10 +605,9 @@ cd_cat () { } cd_echo () { -local name if [ "${1}" ] ; then - for name in "${@}" ; do - eval "echo ${name} = \\\"\${${name}}\\\"" + for cd_echo__name in "${@}" ; do + eval "echo ${cd_echo__name} = \\\"\${${cd_echo__name}}\\\"" done fi }