File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff 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.
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments