go-task / task

A task runner / simpler Make alternative written in Go
https://taskfile.dev
MIT License
11.38k stars 615 forks source link

Regression #785, Associative array is broken. #1908

Open kundeng opened 2 hours ago

kundeng commented 2 hours ago

Regression #785 I'm using the nix version of Task version: 3.39.2

declare -A database_lookup
        database_lookup["management"]=management
        database_lookup["devicetwin"]=devicetwin
        database_lookup["identity"]=identity

        for d in "${!database_lookup[@]}"
        do
          echo $d
        done

The above code just prints "0".

kundeng commented 2 hours ago

I tried the brew version 3.33.1 and I got the same result as well.

pd93 commented 59 minutes ago

As with #785, this will need to be filed upstream with https://github.com/mvdan/sh