From 4a90dedc8160351561998f45f71c307ffd1d3c5d Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Fri, 8 Mar 2024 23:51:15 +0100 Subject: [PATCH] fix bug cat_stty --- etc/profile.d/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- 2.47.3