ash: do not split the result of tilde expansion
authorRon Yorston <rmy@tigress.co.uk>
Mon, 16 Mar 2015 14:14:11 +0000 (14:14 +0000)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 22 Mar 2015 15:55:44 +0000 (16:55 +0100)
commit75a76269ba2549cb5392d7d720a4c393de01b934
tree59c0b0029589482d8fb96b7067f4e4d95542eb09
parent6798564b9e2f1a81b8c2d0cb4add97cb736d982b
ash: do not split the result of tilde expansion

A tilde expansion generates a valid pathname. Splitting it using IFS
either leaves it unchanged or changes it to something unintended.

Example:
   IFS=m HOME=/tmp; printf "%s\n" ~

Based on this commit authored by Jilles Tjoelker:

   http://git.kernel.org/cgit/utils/dash/dash.git/commit/?id=834629283f6c629a4da05ef60bae9445c954a19a

Signed-off-by: Ron Yorston <rmy@tigress.co.uk>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c