$ cat ~/tmp/script.sh | retail -r 'case' -u 'esac'
retail(25362,0x107305dc0) malloc: *** error for object 0xc00007fa53e4018d: pointer being realloc'd was not allocated
retail(25362,0x107305dc0) malloc: *** set a breakpoint in malloc_error_break to debug
Abort trap: 6