From 1197cd24344c9830fe88ad367e542bdf056ef6a6 Mon Sep 17 00:00:00 2001 From: Heinrich Kruger Date: Sun, 28 Jan 2024 14:07:36 +0000 Subject: [PATCH] xbps-src: Don't unset IFS If IFS is unset, the shell behaves as if it has the default value of ``. However, after unsetting IFS, constructs like ``` OFS="$IFS"; IFS=',' ... IFS="$OIFS" ``` (for example in common/xbps-src/shutils/common.sh lines 246-253) have the effect of setting IFS with an empty value, which breaks word-splitting. This results in an error like ``` ./common/xbps-src/shutils/bulk.sh: line 125: sudo /bin/sh -c: No such file or directory ``` when running `./xbps-src update-sys` with `XBPS_SUCMD` set to the default value (`sudo /bin/sh -c`). --- common/environment/setup/sourcepkg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/environment/setup/sourcepkg.sh b/common/environment/setup/sourcepkg.sh index b08379acdd35fe..ded61bddc08b60 100644 --- a/common/environment/setup/sourcepkg.sh +++ b/common/environment/setup/sourcepkg.sh @@ -20,7 +20,7 @@ for var in $(awk 'BEGIN{for (i in ENVIRON) {print i}}'