On Tuesday, 4 January at 14:24, Bob Proulx via Dng wrote:
(...) Portable shell use would be "whatever() {" which I wish to encourage by saying that here. Please use only that form for /bin/sh scripts. :-)The "function" keyword was introduced by ksh. This syntax is also supported by bash and zsh but not by other shells. When "function" is used then the #! line must be /bin/ksh, /bin/bash, or /bin/zsh.
Well, learn something new every day... Thank you for that little nugget. - Antoine -- Build a system that even a fool could use, and only a fool will want to use it. _______________________________________________ Dng mailing list [email protected] https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
