Why return from bash while loop (in pipe) is not break the enclosed function?

前端 未结 0 1523
礼貌的吻别
礼貌的吻别 2021-02-05 17:12

Consider following script:

f1() {
  echo | while true; do
    return 0
  done

  echo "why bash execute this line"          # zsh don\'t execute this li         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题