:: Re: [DNG] Pipewire and PulseAudio: …
Top Pagina
Delete this message
Reply to this message
Auteur: Ralph Ronnquist
Datum:  
Aan: dng
Onderwerp: Re: [DNG] Pipewire and PulseAudio: apulse & firefox
On Wed, 5 Jan 2022 18:30:25 +0100
Antoine via Dng <dng@???> wrote:

> 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.


Agree.

You need to add a second line "alias function=''" in the scripts to
enjoy the "function foo()" syntax also with /bin/sh and /bin/dash

Ralph.