Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Associative array is broken. Regression? #1108

Open
kundeng opened this issue Nov 6, 2024 · 0 comments
Open

Associative array is broken. Regression? #1108

kundeng opened this issue Nov 6, 2024 · 0 comments

Comments

@kundeng
Copy link

kundeng commented Nov 6, 2024

Is this regression of #884?

The error is filed with go-task go-task/task#1908 but was asked to report it here.

Using the latest go-task. The code below just prints "0".

version: '3'

tasks:
  test:
    desc: "This taskfile manages Docker stacks."
    cmds:
      - |
        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 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant