aboutsummaryrefslogtreecommitdiff
path: root/vpeval
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-05-24 13:38:41 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-05-24 13:38:41 +0200
commit4d759d9835082f8036d693421d786c1ac297f386 (patch)
tree0101ba39f5b3598078a2396f16fb81aed9476cfe /vpeval
parent026d9f86c67790d96ded1de8faeaba213a9f5631 (diff)
downloadvp-4d759d9835082f8036d693421d786c1ac297f386.tar.gz
Remove useless use of cat
Although I kind of like the idiom, it IS less efficient.
Diffstat (limited to 'vpeval')
-rwxr-xr-xvpeval2
1 files changed, 1 insertions, 1 deletions
diff --git a/vpeval b/vpeval
index bd0db27..d2226d4 100755
--- a/vpeval
+++ b/vpeval
@@ -1,4 +1,4 @@
#!/bin/sh
-c=`cat | sed '/^#/d'`
+c=`sed '/^#/d'`
echo "$c"
echo "$(eval "$c" 2>&1)" | sed 's/^/# /'