sh: Constify internal representation in expand.c.
authorjilles <jilles@FreeBSD.org>
Sun, 24 Jan 2016 22:26:25 +0000 (22:26 +0000)
committerjilles <jilles@FreeBSD.org>
Sun, 24 Jan 2016 22:26:25 +0000 (22:26 +0000)
commitecb383966d935b9e2d2f89f965f1c7cc98b1971e
treeeac8a565e1e7ebb782c6d45cc749f76dd27361ed
parent1f19a8fc755a14865a5a5b67d5fa895c4b7cf622
sh: Constify internal representation in expand.c.

Forbid (temporary or permanent) modifications of the strings in NARG nodes
during expansion.

Tilde expansion now needs to copy the username for the terminating '\0'.
bin/sh/expand.c