From bfbfe8a7b2aaa037d0ad464518518d33ea5ff2c1 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 28 Aug 2008 19:55:57 +0000 Subject: [PATCH] Revert change for STR #2028, which is not correct. $(foo) is NOT portable, and nested quotes like "'$foo'" are required to do variable expansion for POSIX compatibility. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6176 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fltk-config.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fltk-config.in b/fltk-config.in index e50264644..adbd375af 100755 --- a/fltk-config.in +++ b/fltk-config.in @@ -246,16 +246,16 @@ fi if test -n "$compile"; then case "$compile" in *.cxx) - prog=$(basename "$compile" .cxx) + prog="`basename '$compile' .cxx`" ;; *.cpp) - prog=$(basename "$compile" .cpp) + prog="`basename '$compile' .cpp`" ;; *.cc) - prog=$(basename "$compile" .cc) + prog="`basename '$compile' .cc`" ;; *.C) - prog=$(basename "$compile" .C) + prog="`basename '$compile' .C`" ;; *) echo "ERROR: Unknown/bad C++ source file extension on \"$compile\"!"