Skip to content

Commit 712c396

Browse files
committed
Fix comments
1 parent de5b2cb commit 712c396

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

command/info_sub/variables.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,10 @@ function _Dbg_do_info_variables() {
6969
(($? != 0)) && return
7070

7171
# Caveats:
72-
# Bash >= 5.2: 'declare -p' properly escapes special characters within $'', e.g. $'\n\t'
7372
# Bash < 5.2: 'declare -p' does not escape special characters within $'', but only 'declare' does
7473
# "declare -p" outputs variables without values, but "declare" does not
7574
#
76-
# To work with all of Bash 5.x, we're collecting all variables and values from 'declare'.
75+
# We're collecting all variables and values from 'declare'.
7776
# Because a plain "declare" also prints functions we're only iterating until the first function definition was found.
7877
#
7978
# Then we run declare with the filter parameters (-p, -i, etc.) to retrieve the variables to output.

0 commit comments

Comments
 (0)