From: Simon Ruderich Date: Wed, 1 Feb 2012 22:16:12 +0000 (+0100) Subject: bin/*: Use exec to prevent unnecessary shell processes. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=f554c3caec8622b487cb90ce82ac04ed3fca5719;p=config%2Fdotfiles.git bin/*: Use exec to prevent unnecessary shell processes. --- diff --git a/bin/calc b/bin/calc index e70128a..6a40543 100755 --- a/bin/calc +++ b/bin/calc @@ -16,7 +16,7 @@ # along with this program. If not, see . -python -i -c 'from math import *; +exec python -i -c 'from math import *; def ld(x): return log(x)/log(2) diff --git a/bin/pdftotext- b/bin/pdftotext- index 23cb262..e3f41a1 100755 --- a/bin/pdftotext- +++ b/bin/pdftotext- @@ -16,4 +16,4 @@ # along with this program. If not, see . -pdftotext "$@" - +exec pdftotext "$@" - diff --git a/bin/svalgrind b/bin/svalgrind index 5dd8c9a..3d02efe 100755 --- a/bin/svalgrind +++ b/bin/svalgrind @@ -16,5 +16,5 @@ # along with this program. If not, see . -valgrind --leak-check=full --show-reachable=yes --error-exitcode=1 \ - --track-fds=yes "$@" +exec valgrind --leak-check=full --show-reachable=yes --error-exitcode=1 \ + --track-fds=yes "$@" diff --git a/bin/svalgrind-ptr b/bin/svalgrind-ptr index 29eaa35..5ef297b 100755 --- a/bin/svalgrind-ptr +++ b/bin/svalgrind-ptr @@ -16,4 +16,4 @@ # along with this program. If not, see . -valgrind --tool=exp-ptrcheck --error-exitcode=1 "$@" +exec valgrind --tool=exp-ptrcheck --error-exitcode=1 "$@"