From: Nicolas Boisselier Date: Fri, 8 Mar 2024 22:51:15 +0000 (+0100) Subject: fix bug cat_stty X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=4a90dedc8160351561998f45f71c307ffd1d3c5d;p=nb.git fix bug cat_stty --- diff --git a/etc/profile.d/functions b/etc/profile.d/functions index fd55c1b7..9184531d 100755 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -9,7 +9,7 @@ cat_stty() { usage="cat_stty DEVICE [BAUD=9600]" local dev="${1?$usage}" local baud="${2:-9600}" - cat "$dev" "$baud" + stty "$baud" -F "$dev" raw -echo && cat "$dev" } which nproc > /dev/null || nproc() {