#!/bin/bash # Pi's bash tool runs commands through this (settings shellPath); bench dev and the board terminal prepend the # same pipe-note.sh. Exit code is unchanged (no pipefail: `| head` stays 0); when an earlier step of the final # pipeline failed, one line on stderr says so. 141 = the reader closed the pipe early, which is normal. [ "$1" = -c ] && shift exec /bin/bash -c "$(<"${0%/*}/pipe-note.sh") $1"