Skip to content

Commit

Permalink
fixed: spaces should not be supported in variable values.
Browse files Browse the repository at this point in the history
  • Loading branch information
firnsy committed May 30, 2013
1 parent 8fd1719 commit f9d8fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kp_core
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ function get_spec_version {
then
# extract all global/define variables and evaluate them to the stack via "name=foo"
IFS=$'\n'
for V in $(grep -e ^%define -e ^%global ${_FILE} | sed -r -e 's/-([a-zA-Z0-9]+)/_\1/g' -e 's/%(define|global)\s+([a-zA-Z0-9_]+)\s+(.*)/\2="\3"/' )
for V in $(grep -e ^%define -e ^%global ${_FILE} | sed -r -e 's/-([a-zA-Z0-9]+)/_\1/g' -e 's/%(define|global)\s+([a-zA-Z0-9_]+)\s+([^ ]+)/\2="\3"/' )
do
eval "__$V"
done
Expand Down

0 comments on commit f9d8fea

Please sign in to comment.