Skip to main content
added 11 characters in body; edited tags
Source Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 267

I am encountingencountering no mathesmatches found when using map in zsh:

#!/bin/zsh

declare -A map=(["8761"]="Eureka服务" ["11001"]="用户微服务")

Why would this happen?how to, and how can I fix it? This is the error:

~/source/dolphin/dolphin-scripts/bash/tool on  master! ⌚ 20:57:52
$ ./batch-terminal-process.sh
./batch-terminal-process.sh:14: no matches found: [8761]=Eureka服务

I am encounting no mathes found when using map in zsh:

#!/bin/zsh

declare -A map=(["8761"]="Eureka服务" ["11001"]="用户微服务")

Why would this happen?how to fix it? This is the error:

~/source/dolphin/dolphin-scripts/bash/tool on  master! ⌚ 20:57:52
$ ./batch-terminal-process.sh
./batch-terminal-process.sh:14: no matches found: [8761]=Eureka服务

I am encountering no matches found when using map in zsh:

#!/bin/zsh

declare -A map=(["8761"]="Eureka服务" ["11001"]="用户微服务")

Why would this happen, and how can I fix it? This is the error:

~/source/dolphin/dolphin-scripts/bash/tool on  master! ⌚ 20:57:52
$ ./batch-terminal-process.sh
./batch-terminal-process.sh:14: no matches found: [8761]=Eureka服务
"map" is simply the name of your array; and it's not obvious that "map" should a synonym for "associative array"
Link

no matches found when using mapassociative arrays in zsh

Source Link
Dolphin
  • 791
  • 5
  • 26
  • 48

no matches found when using map in zsh

I am encounting no mathes found when using map in zsh:

#!/bin/zsh

declare -A map=(["8761"]="Eureka服务" ["11001"]="用户微服务")

Why would this happen?how to fix it? This is the error:

~/source/dolphin/dolphin-scripts/bash/tool on  master! ⌚ 20:57:52
$ ./batch-terminal-process.sh
./batch-terminal-process.sh:14: no matches found: [8761]=Eureka服务