diff --git a/src/lib/Gitolite/Common.pm b/src/lib/Gitolite/Common.pm index 79c905d..5a4b4dc 100644 --- a/src/lib/Gitolite/Common.pm +++ b/src/lib/Gitolite/Common.pm @@ -274,7 +274,7 @@ sub logger_plus_stderr { sub tsh_try { my $cmd = shift; die "try: expects only one argument" if @_; - $text = `( $cmd ) 2>&1; echo -n RC=\$?`; + $text = `( $cmd ) 2>&1; /bin/echo -n RC=\$?`; if ( $text =~ s/RC=(\d+)$// ) { $rc = $1; trace( 3, $text ); diff --git a/src/lib/Gitolite/Test/Tsh.pm b/src/lib/Gitolite/Test/Tsh.pm index 3281a34..581a844 100644 --- a/src/lib/Gitolite/Test/Tsh.pm +++ b/src/lib/Gitolite/Test/Tsh.pm @@ -333,7 +333,7 @@ sub _sh { # TODO: switch to IPC::Open3 or something...? dbg( 4, " running: ( $cmd ) 2>&1" ); - $text = `( $cmd ) 2>&1; echo -n RC=\$?`; + $text = `( $cmd ) 2>&1; /bin/echo -n RC=\$?`; $lec = $cmd; dbg( 4, " results:\n$text" );