'In standard shell syntax, dictionary elements can be added in batch es, what to do in the z shell?
In the standard shell, a dictionary can be assigned a value using the following syntax:
$ declare -A dict
$ dic=([key1]="value1" [key2]="value2" [key3]="value3")
However, this doesn't work in z shell, how can I accomplish the same in z shell?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
