From fb6eee26d4a0e43f5790507a2e9a998641f433b4 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Sat, 10 Sep 2011 19:50:12 -0500 Subject: [PATCH] Only shift if an argument is passed. Fixes #78. --- libexec/rbenv-init | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/libexec/rbenv-init b/libexec/rbenv-init index df2bf00c..cc1196c4 100755 --- a/libexec/rbenv-init +++ b/libexec/rbenv-init @@ -70,14 +70,17 @@ echo 'rbenv rehash 2>/dev/null' commands=(`rbenv commands --sh`) IFS="|" cat <