On Wed, Apr 29, 2020, James K. Lowden wrote:
> On Tue, 28 Apr 2020 17:45:46 -0400
> Peter Schaffter <pe...@schaffter.ca> wrote:
> > Something similar but more robust and not reliant on a particular
> > shell interpreter would be better.
> 
> I just took a look, Peter, because I have some experience writing
> Bourne shell scripts.  I don't see anything bash-specific, just
> looking over it.  You might just change #!/bin/bash to #!/bin/sh;
> I think it will run pretty well, maybe perfectly.

On Debian derivatives, dash(1) has a bug in its signal handling,
hence !#/bin/bash rather than the generic !#/bin/sh.  In turn, bash(1)
requires the bash-specific 'set -o posix' in order for ctrl-C to
work.

-- 
Peter Schaffter
http://www.schaffter.ca

Reply via email to