From 50c2867f4a6981e085c721d936c96f174f11f415 Mon Sep 17 00:00:00 2001 From: Marek Kasik Date: Thu, 8 Aug 2013 16:20:20 +0200 Subject: Unquote values of requested variables If a --variable is requested, make sure to remove the quoting since it's likely the value will be used verbatim in shell command substitution. If the quotes remain in the value, they'd get embedded in the shell variable, too. Freedesktop #67904 (https://bugs.freedesktop.org/show_bug.cgi?id=67904) --- check/check-whitespace | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'check') diff --git a/check/check-whitespace b/check/check-whitespace index e4388ba..b062bc0 100755 --- a/check/check-whitespace +++ b/check/check-whitespace @@ -4,6 +4,10 @@ set -e . ${srcdir}/common +# variables come out unquoted +RESULT='/usr/white space/include' +run_test --variable=includedir whitespace + # expect cflags from whitespace RESULT='-Dlala=misc -I/usr/white\ space/include -I$(top_builddir) -Iinclude\ dir -Iother\ include\ dir' run_test --cflags whitespace -- cgit v1.2.1