From 9e6e03bd343573f40eb2d4fbfc395f12aef4bdcf Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 30 Jan 2026 14:27:29 +0100 Subject: [PATCH] busybox: handle config values containing spaces Also just a nice simplification. --- pkgs/os-specific/linux/busybox/default.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkgs/os-specific/linux/busybox/default.nix b/pkgs/os-specific/linux/busybox/default.nix index 873d5ec4c91d..994b2cd530cf 100644 --- a/pkgs/os-specific/linux/busybox/default.nix +++ b/pkgs/os-specific/linux/busybox/default.nix @@ -20,10 +20,7 @@ assert stdenv.hostPlatform.libc == "musl" -> useMusl; let configParser = '' function parseconfig { - while read LINE; do - NAME=`echo "$LINE" | cut -d \ -f 1` - OPTION=`echo "$LINE" | cut -d \ -f 2` - + while IFS=" " read NAME OPTION; do if ! [[ "$NAME" =~ ^CONFIG_ ]]; then continue; fi echo "parseconfig: removing $NAME"