Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
shell_dump_function [2019/10/24 23:41] – rpjday | shell_dump_function [2019/10/24 23:44] (current) – rpjday | ||
---|---|---|---|
Line 43: | Line 43: | ||
HISTFILE = / | HISTFILE = / | ||
HISTSIZE = 1000 | HISTSIZE = 1000 | ||
+ | $ | ||
+ | </ | ||
+ | |||
+ | Next, dumping regular arrays: | ||
+ | |||
+ | < | ||
+ | $ people=(fred barney wilma betty) | ||
+ | $ dump people | ||
+ | people = fred barney wilma betty | ||
+ | $ | ||
+ | </ | ||
+ | |||
+ | Finally, dump a bash associative array: | ||
+ | |||
+ | < | ||
+ | $ declare -A wife | ||
+ | $ wife[fred]=wilma | ||
+ | $ wife[barney]=betty | ||
+ | $ dump wife | ||
+ | wife[fred] = wilma | ||
+ | wife[barney] = betty | ||
$ | $ | ||
</ | </ |