diff --git a/sh/glug b/sh/glug index c811fbd..5d0ad40 100644 --- a/sh/glug +++ b/sh/glug @@ -96,7 +96,7 @@ glug() ( # note the subshell syntax. this allows us to abuse globals like crazy. old="$(stty -g)" trap 'stty "$old"' INT EXIT stty -icanon -echo - dd ibs=1 count=1 2>/dev/null + dd ibs=1 count=1 2>/dev/null || exit echo _ # append an underscore so that newlines are preserved in captures }