s6

Mirror/fork of https://skarnet.org/software/s6/
git clone https://ccx.te2000.cz/git/s6
Log | Files | Refs | README | LICENSE

commit 9dcdfcefdeca2d8795cc0b7946d2efa4b7025975
parent 4c8dc8ab046864c370ce1aadd29403fd6c78097f
Author: Mobin <mobin@mobintestserver.ir>
Date:   Sat,  8 Jul 2023 12:56:43 +0330

configure: Catch all of variable values

If variables have multiple values (such as CFLAGS="-std=c11 -fPIE"), eval
drops most values (except first one) from it. This commit fixes this issue.

Signed-off-by: Mobin "Hojjat" Aydinfar <mobin@mobintestserver.ir>

Diffstat:
Mconfigure | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure @@ -200,7 +200,7 @@ for arg ; do --host=*|--target=*) target=${arg#*=} ;; --build=*) build=${arg#*=} ;; -* ) echo "$0: unknown option $arg" ;; - *=*) eval "$arg" ;; + *=*) eval "${arg%%=*}=\${arg#*=}" ;; *) target=$arg ;; esac done