aboutsummaryrefslogtreecommitdiff
path: root/vpeval
diff options
context:
space:
mode:
Diffstat (limited to 'vpeval')
-rwxr-xr-xvpeval7
1 files changed, 6 insertions, 1 deletions
diff --git a/vpeval b/vpeval
index 4c5b785..3031cff 100755
--- a/vpeval
+++ b/vpeval
@@ -1,2 +1,7 @@
#!/bin/sh
-echo "$(eval "$(sed '/^#/d')" 2>&1)" | sed 's/^/# /'
+{
+ if [ -z "$VPIN" ]
+ then eval "$(sed '/^#/d')" 2>&1
+ else eval "$(sed '/^#/d')" 2>&1 <"$VPIN"
+ fi
+} | sed 's/^/# /'