In jemalloc, autogen.sh has following code snippet:
for i in autoconf; do
echo "$i"
$i
if [ $? -ne 0 ]; then
echo "Error $? in $i"
exit 1
fi
done
I dont know why not directly write as:
echo "autoconf"
autoconf
if [ $? -ne 0 ]; then
echo "Error $? in autoconf"
exit 1
fi
I think the two code snippets are the same. And the second abviously cleared. I cannot understand why the first. Does it have any other meanings? Thanks~