On Tue, 7 Aug 2018, Michael Kjörling wrote:
Hopefully other shells are more sane.
The MacBook here runs GNU bash, version 3.2.57(1)-release
(x86_64-apple-darwin16) and is equally busted, as is plain "sh" on both
the Mac and FreeBSD (I can't be bothered checking the Penguin); I use ZSH
on FreeBSD and it does The Right Thing (tm), as does ZSH on the Mac.
-- Dave