Bash - Display information about an aspect of the bash programming environment

# @param String $type the type for information you want to display. # Allowed Values: arrays, defs, names, readonly, exports, integers # function show() { echo -e "Inform the user what can be used" echo -e "--------------------------------" case "$1" in arrays) declare -a ;; defs) declare -f ;; names) declare -F ;; readonly) declare -r ;; exports) declare -x ;; integers) declare -i ;; *) echo -e " arrays - display known arrays " echo -e " names - display function names only" echo -e " defs - display functions names and their definitions" echo -e " readonly - display all the readonly variables" echo -e " exports - display all exported variables" echo -e " integers - display all integers" ;; esac }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.