IOW, it's a bug in those two terminals, havoc and weston terminal.
Darn. In that case, I created this trivial wrapper script for
yes, which does away with the errors when using
tce-load:
#!/bin/sh
exec /usr/bin/yes "$@" 2>/dev/null
But that doesn't solve scripts where
yes is needed multiple times in same pipeline. Even with the wrapper script, something like this:
yes "password" | bcrypt somefile
seems to enter an endless loop, driving CPU usage way up. Workaround for this situation is this kludge:
i=1
while true; do
echo "password"
[ $i -eq 2 ] && break
i=$(( $i + 1 ))
done | bcrypt somefile
If I figure out how to properly fix the bug in the terminal emulators, I'll post it here.