On Tue, 28 Apr 2020 17:45:46 -0400 Peter Schaffter <pe...@schaffter.ca> wrote:
> > Also, wouldn't this script be useful to include in the groff > > distribution? > > I'm inclined to think so, however it contains non-portable bashisms > and so might not be appropriate. The script was a quick and dirty > solution to font installation. That's the best and biggest Q&D shell script I've ever seen. > 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. If I were publishing it, I'd remove the VT100 escape codes, and format my if statements without semicolons: if [ foo ] then bar fi because that's what Steven Bourne intended. ;-) If you decide to add it to the distibution, I'll write the man page. --jkl