# HG changeset patch # User Oleksandr Gavenko # Date 1531087002 -10800 # Node ID 0ac7d9a3d658857014b198bc82f8c66a81374710 # Parent d284bcd5a8c3f182f787b75e86c4ab4515eedf25 Exploring values. diff -r d284bcd5a8c3 -r 0ac7d9a3d658 bash.rst --- a/bash.rst Wed Jul 04 21:16:15 2018 +0300 +++ b/bash.rst Mon Jul 09 00:56:42 2018 +0300 @@ -53,4 +53,21 @@ http://wiki.bash-hackers.org/scripting/bashchanges This article is an incomplete overview of changes to Bash over the time. +Exploring values +================ +Display all or specific variable declarations:: + + $ declare -p + $ declare -p NAME1 NAME2 + +Display defined functions:: + + $ declare -F + $ declare -F NAME1 NAME2 + +Display function body:: + + $ declare -f NAME + +