]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
bin/*: Use exec to prevent unnecessary shell processes.
authorSimon Ruderich <simon@ruderich.org>
Wed, 1 Feb 2012 22:16:12 +0000 (23:16 +0100)
committerSimon Ruderich <simon@ruderich.org>
Wed, 1 Feb 2012 22:16:12 +0000 (23:16 +0100)
bin/calc
bin/pdftotext-
bin/svalgrind
bin/svalgrind-ptr

index e70128a55569864291f797951ffcb54b4ecca3fc..6a4054346af042e57735ad4fdbb728348910109b 100755 (executable)
--- a/bin/calc
+++ b/bin/calc
@@ -16,7 +16,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
-python -i -c 'from math import *;
+exec python -i -c 'from math import *;
 
 def ld(x):
     return log(x)/log(2)
index 23cb2627da614ee9f42c3097ca570ba4a4f8bc69..e3f41a1c49426d1ddeeda2437e117af3ea7f922d 100755 (executable)
@@ -16,4 +16,4 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
-pdftotext "$@" -
+exec pdftotext "$@" -
index 5dd8c9abe0a601bc8dd725fbdaa0d2127f87739e..3d02efe6853231d4bf161fe03f3c234d2eee528d 100755 (executable)
@@ -16,5 +16,5 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
-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 "$@"
index 29eaa35ed3ea0a94b9d52bcba2c63f27a9126ee1..5ef297b8195d5903409b70ec0cec232123cfab32 100755 (executable)
@@ -16,4 +16,4 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
-valgrind --tool=exp-ptrcheck --error-exitcode=1 "$@"
+exec valgrind --tool=exp-ptrcheck --error-exitcode=1 "$@"