gavingeng

zsh for循环parse问题

  •  
  •   gavingeng · Sep 20, 2012 · 5543 views
    This topic created in 4985 days ago, the information mentioned may be changed or developed.
    for((i=1;i<=16;i++));do echo "----$i------"; ab -c 10 -n 100 "http://10.130.8.$i:8080/search/doSearch?query=KOREA&secQuery=&actualQuery=KOREA&searchType=2&docType=%E5%85%A8%E9%83%A8" ; sleep 5; done
    zsh: parse error near `)'

    在bash下表现很正常,但在zsh下就出现这个,有遇到过的吗?如何处理的?
    1 replies    2020-04-05 19:33:27 +08:00
    noproblem
        1
    noproblem  
       Apr 5, 2020
    for 和((之间需要空格
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5618 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 08:22 · PVG 16:22 · LAX 01:22 · JFK 04:22
    ♥ Do have faith in what you're doing.