Exploring values.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 09 Jul 2018 00:56:42 +0300
changeset 2256 0ac7d9a3d658
parent 2255 d284bcd5a8c3
child 2257 9d446a4c5e2a
Exploring values.
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
+
+