From c17eeddec963f010324677d0c347efb8e4ccd158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 19 Jul 2021 12:10:13 +0200 Subject: Print results of saved command on exit, if stdin --- vp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vp b/vp index 88bfdf9..7b64aae 100755 --- a/vp +++ b/vp @@ -12,6 +12,6 @@ f=`mktemp` [ "$(wc -c "$f" | awk '{print $1}')" -eq 0 ] && rm "$f" if [ ! -z "$VPIN" ]; then - cat "$VPIN" + vpeval <"$f" | sed 's/^# //' rm "$VPIN" fi -- cgit v1.2.3