ash: var: Set IFS to fixed value at start time
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 5 Aug 2018 11:59:35 +0000 (13:59 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 5 Aug 2018 11:59:35 +0000 (13:59 +0200)
Upstream commit:

    Date: Sat, 19 May 2018 02:39:43 +0800
    var: Set IFS to fixed value at start time

    This patch forces the IFS variable to always be set to its default
    value, regardless of the environment.

    It also removes the long unused IFS_BROKEN code.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c

index 6cda7251e7affb726387cfa4fa8021f73adfda08..6ef0a7ac272977c3746d080a2c5fa8f4164fa000 100644 (file)
@@ -13960,6 +13960,7 @@ init(void)
                        }
                }
 
+               setvareq((char*)defifsvar, VTEXTFIXED);
                setvareq((char*)defoptindvar, VTEXTFIXED);
 
                setvar0("PPID", utoa(getppid()));