aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-19 12:10:13 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-19 12:10:13 +0200
commitc17eeddec963f010324677d0c347efb8e4ccd158 (patch)
treeefbf26b0478bfbc123cf342811822ba59d747994
parentd904acc931e118a3cd7b7ba65c48224f295874e8 (diff)
downloadvp-master.tar.gz
Print results of saved command on exit, if stdinHEADmaster
-rwxr-xr-xvp2
1 files changed, 1 insertions, 1 deletions
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