Issue
I'm wondering if there's some command that takes in a variable as an argument, and echoes all of its attributes (integer, array, readonly, etc)
id='dv3'>
Solution
I think
$ declare -p var
is what you are looking for:
From help declare
:
declare: declare [-aAfFgilnrtux] [-p] [name[=value] ...] ... -p display the attributes and value of each NAME
Answered By - randomir Answer Checked By - Marie Seifert (WPSolving Admin)