On Mon, May 27, 2024 at 08:44:20PM +0800, Kent Gibson wrote: > On Mon, May 27, 2024 at 02:02:34PM +0200, Bartosz Golaszewski wrote: ... > > assert_fail() { > > - $* || return 0 > > - fail " '$*': command did not fail as expected" > > + "$@" || return 0 > > + fail " '$@': command did not fail as expected" > > } > > Ironically, shellcheck doesn't like the '$@' in the fail string[1], so you > should use $* there. But why does it do like this? -- With Best Regards, Andy Shevchenko