On Dez 04 2022, Dale R. Worley wrote:

> In default mode, you actually can do
>     $ function a=b { printf hi\\n; }
> though you can't execute it:
>     $ a=b foo
>     bash: foo: command not found

You just have to quote any part of the function name upto the equal sign
to stop if from being interpreted as an assignment.

$ \a=b foo
hi

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

Reply via email to