Browse Source

now, results go to history!

main
Blau Araujo 1 year ago
parent
commit
64915aeb78
  1. 14
      cawk

14
cawk

@ -81,10 +81,16 @@ repl() {
read -erp ': '
history -s "$REPLY"
case "${REPLY,,}" in
f*( )+([0-9])) PRECISION=${REPLY:1};;
h|'?') echo "$help" ;;
q|quit) die 0 ;;
*) calc "$REPLY" $PRECISION ;;
f*( )+([0-9])) PRECISION=${REPLY:1}
;;
h|'?') echo "$help"
;;
q|quit) die 0
;;
*) local r=$(calc "$REPLY" $PRECISION)
echo "$r"
history -s "$r"
;;
esac
done
}

Loading…
Cancel
Save