summary refs log tree commit diff
path: root/src/funcs/popd
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-11-11 15:27:00 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2007-11-11 15:27:00 +0800
commitf4ee8c859c3d3fe6c5b540bffa6a0b6f320f8b3e (patch)
tree22b3d58db0458f6e4c03a30422c4708dc0e2ff7e /src/funcs/popd
parent[EXPAND] Removed herefd hack (diff)
downloaddash-f4ee8c859c3d3fe6c5b540bffa6a0b6f320f8b3e.tar.gz
dash-f4ee8c859c3d3fe6c5b540bffa6a0b6f320f8b3e.zip
[EXPAND] Expand here-documents in the current shell environment
Previously we always expanded here-documents in a subshell.  This is
contrary to the POSIX specification and how other shells behave.  What's
more this slows down many expansions due to the extra fork (however, it
must be said that it is possible for it speed up certain expansions by
running it simultaneously with the command on two CPUs).

This patch move the expansion into the current shell environment.

Test case:

	unset a
	cat <<- EOF > /dev/null
		${a=NOT}
	EOF
	echo ${a}BAD

Old result:

	BAD

New result:

	NOTBAD
Diffstat (limited to 'src/funcs/popd')
0 files changed, 0 insertions, 0 deletions
/catgirl/commit/ui.c?h=1.4&id=7a8024ae3dbe0c2c52b6536fb73dd33071e00637&follow=1'>Always increase unreadLinesJune McEnroe 2020-02-10Move scroll marker on resizeJune McEnroe 2020-02-10Update line count for words longer than linesJune McEnroe 2020-02-10Simplify mark, heat, unread trackingJune McEnroe 2020-02-10Update prompt when own nick changesJune McEnroe 2020-02-10Match URLs surrounded by parenthesesJune McEnroe 2020-02-10Fix M-a so it properly cycles back to where it startedJune McEnroe 2020-02-09Add M-lJune McEnroe 2020-02-09Add /whoisJune McEnroe 2020-02-09Add /msgJune McEnroe