From 74cb1d734547f947c567bfd8bc82add8e2073220 Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Thu, 26 Dec 2024 20:14:25 +0200 Subject: [PATCH] declare: add function print example and update link (#15223) --- pages/common/declare.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/common/declare.md b/pages/common/declare.md index e716aac97..a17c98f5d 100644 --- a/pages/common/declare.md +++ b/pages/common/declare.md @@ -1,7 +1,7 @@ # declare > Declare variables and give them attributes. -> More information: . +> More information: . - Declare a string variable with the specified value: @@ -26,3 +26,7 @@ - Declare a global variable within a function with the specified value: `declare -g {{variable}}="{{value}}"` + +- Print a function definition: + +`declare -f {{function_name}}`