Bash - Add variable in associative array - bad substitution

前端 未结 0 1368
野的像风
野的像风 2021-01-06 02:42

Here is an expected behavior for associated array in bash

$ declare -A PC=( [Monitor]=Dell [CPU]=HP )
$ echo ${PC[CPU]}
HP

This gives me

相关标签:
回答
  • 消灭零回复
提交回复
热议问题