O'Reilly logo
  • QIAN Weishuo thinks this is interesting:

repeat() { while true; do $@ && return; done }

From

Cover of Linux Shell Scripting Cookbook - Third Edition

Note

注意 $@ 的写法,“执行传入的参数串”