diff --git a/bin/pos-ai b/bin/pos-ai index 643b68c..b69fca2 100755 --- a/bin/pos-ai +++ b/bin/pos-ai @@ -411,7 +411,7 @@ _inject_command() { if [ -w /dev/tty ]; then local edited="" printf '\n' >&2 - if edited="$(read -e -p "Command: " -i "$flat" /dev/null)"; then + if read -e -p "Command: " -i "$flat" edited /dev/null; then [ -n "$edited" ] || { printf '%s\n' "Empty command — skipped." >&2; return 0; } printf '%s\n' "$edited" run eval "$edited"