groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Potential enhancements to install-font.sh from https://www.schaffter


From: Peter Schaffter
Subject: Re: Potential enhancements to install-font.sh from https://www.schaffter.ca/mom/bin/install-font.sh
Date: Thu, 30 Apr 2020 12:20:20 -0400
User-agent: Mutt/1.9.4 (2018-02-28)

On Wed, Apr 29, 2020, James K. Lowden wrote:
> On Tue, 28 Apr 2020 17:45:46 -0400
> Peter Schaffter <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]