79701967

Date: 2025-07-15 11:11:05
Score: 0.5
Natty:
Report link

My use case required immediate fixed values to pass.

f() {
  declare -A map=$1
  for key in ${!map[@]}
  do
    echo "$key : ${map[$key]}"
  done
}

This correctly produces:

# f '(["key 1"]="value 1" ["key 2"]="value 2")'
key 2 : value 2
key 1 : value 1
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Berci