From 4cf3de70bcb95dd198d9a3bb5c537df6b7e00a9c Mon Sep 17 00:00:00 2001 From: kumarsgoyal Date: Mon, 7 Apr 2025 12:24:11 +0530 Subject: [PATCH] Fix: handle filenames with spaces in kernbench script --- utils/benchmark/kernbench-0.42/kernbench | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/utils/benchmark/kernbench-0.42/kernbench b/utils/benchmark/kernbench-0.42/kernbench index 2d5817bed06..e9f8600644d 100644 --- a/utils/benchmark/kernbench-0.42/kernbench +++ b/utils/benchmark/kernbench-0.42/kernbench @@ -96,9 +96,8 @@ make clean > /dev/null 2>&1 if [[ $fast_run -eq 0 ]] ; then echo Caching kernel source in ram... - for i in `find -type f` - do - cat $i > /dev/null + find . -type f -print0 | while IFS= read -r -d '' i; do + cat "$i" > /dev/null done fi