On Thu, Dec 03, 2015 at 11:18:27AM +0000, Ferruh Yigit wrote: > On Thu, Dec 03, 2015 at 09:18:49AM +0100, Christian Ehrhardt wrote: > > Hi Ferruh, > > some minor bash improvements that could be made in the next revision: > > > > On Thu, Dec 3, 2015 at 2:22 AM, Ferruh Yigit <ferruh.yigit at intel.com> > > wrote: > > > diff --git a/scripts/merge_maps.sh b/scripts/merge_maps.sh > > > new file mode 100755 > > > index 0000000..bc40dc8 > > > --- /dev/null > > > +++ b/scripts/merge_maps.sh > > > @@ -0,0 +1,29 @@ > > > +#!/bin/sh > > > + > > > +FILES=$(find $RTE_SDK -name "*.map" | grep -v build) > > > +SYMBOLS=$(grep -h "{" $FILES | sort -u | sed 's/{//') > > > > Guarding $RTE_SDK and $FILES with "" will help avoid some potential > > issues due to words splitting.
I quoted them (not $FILES which grep requires multiple params), but that will not actually help with folder names contains spaces, for that case script is broken. I fixed script using IFS and a few tricks but made script unnecessarly complex, so I revert back and leaving as it is unless required explicitly. And I suspect if folder name has spaces this script won't be only thing broken. Thanks, ferruh