]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Remove quotes from subshell call in tools/split.sh
authorZhao Lei <zhaolei@cn.fujitsu.com>
Fri, 7 Aug 2015 13:17:20 +0000 (21:17 +0800)
committerZhao Lei <zhaolei@cn.fujitsu.com>
Fri, 7 Aug 2015 13:17:20 +0000 (21:17 +0800)
commited9703e3edc1290b57132e408e2d1c1d021d9477
treefadb3cb7e80615aea3f2f02fd5b4ab44643c1588
parent78e6ddb90332affa4625916f06c1531a5635d8af
Remove quotes from subshell call in tools/split.sh

Always no quotes for $() statement.

We don't need quotes to hold blanks in result:
 # i=$(echo 1 2 3)
 # echo $i
 1 2 3
 #

These quotes can make something wrong in some case:
 # i=$(echo '!')
 #
 # i="$(echo '!')"
 -bash: !: event not found
 #

No real problem for current code in split.sh, only to use a
better code style.

Change-Id: Ib86d59e10be0aca4774ad2fc656915a96b1b6c74
Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
tools/split.sh