diff --git a/typo3/sysext/core/Build/Scripts/duplicateExceptionCodeCheck.sh b/typo3/sysext/core/Build/Scripts/duplicateExceptionCodeCheck.sh
index e5066b850533f52c3aeb3fb07f5b745d7644e4ef..3d6f2dfd5f6d48e3ff827e142c68160b4656f971 100755
--- a/typo3/sysext/core/Build/Scripts/duplicateExceptionCodeCheck.sh
+++ b/typo3/sysext/core/Build/Scripts/duplicateExceptionCodeCheck.sh
@@ -28,7 +28,7 @@ IGNORE=("1270853884")
 ACK=${ACK:-ack-grep}
 
 # Respect only php files and ignore files within a "Tests" directory
-EXCEPTIONS=$(${ACK} --type php --ignore-dir Tests 'throw new' -A5 | grep '[[:digit:]]\{10\}')
+EXCEPTIONS=$(${ACK} --type php --ignore-dir Tests 'throw new' -A5 0>&- | grep '[[:digit:]]\{10\}')
 
 DUPLICATES=$(echo ${EXCEPTIONS} | awk '{
     for(i=1; i<=NF; i++) {