From 68d446626fba853ccba6175b3636fba6d3f8bac4 Mon Sep 17 00:00:00 2001 From: Joachim Ansorg Date: Wed, 9 Oct 2024 10:59:44 +0200 Subject: [PATCH] Fix comments --- command/info_sub/variables.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/command/info_sub/variables.sh b/command/info_sub/variables.sh index 9e3fab8..fe48fcc 100644 --- a/command/info_sub/variables.sh +++ b/command/info_sub/variables.sh @@ -69,11 +69,10 @@ function _Dbg_do_info_variables() { (($? != 0)) && return # Caveats: - # Bash >= 5.2: 'declare -p' properly escapes special characters within $'', e.g. $'\n\t' # Bash < 5.2: 'declare -p' does not escape special characters within $'', but only 'declare' does # "declare -p" outputs variables without values, but "declare" does not # - # To work with all of Bash 5.x, we're collecting all variables and values from 'declare'. + # We're collecting all variables and values from 'declare'. # Because a plain "declare" also prints functions we're only iterating until the first function definition was found. # # Then we run declare with the filter parameters (-p, -i, etc.) to retrieve the variables to output.