Date: Sun, 12 Jun 2011 23:06:04 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/sh eval.c expand.c expand.h jobs.c sh.1 var.c var.h Message-ID: <201106122306.p5CN6PXt025718@repoman.freebsd.org>
index | next in thread | raw e-mail
jilles 2011-06-12 23:06:04 UTC
FreeBSD src repository
Modified files:
bin/sh eval.c expand.c expand.h jobs.c sh.1
var.c var.h
Log:
SVN rev 223024 on 2011-06-12 23:06:04Z by jilles
sh: Save/restore changed variables in optimized command substitution.
In optimized command substitution, save and restore any variables changed by
expansions (${var=value} and $((var=assigned))), instead of trying to
determine if an expansion may cause such changes.
If $! is referenced in optimized command substitution, do not cause jobs to
be remembered longer.
This fixes $(jobs $!) again, simplifies the man page and shortens the code.
Revision Changes Path
1.109 +11 -7 src/bin/sh/eval.c
1.89 +0 -72 src/bin/sh/expand.c
1.16 +0 -1 src/bin/sh/expand.h
1.94 +3 -1 src/bin/sh/jobs.c
1.168 +2 -5 src/bin/sh/sh.1
1.61 +7 -3 src/bin/sh/var.c
1.23 +2 -0 src/bin/sh/var.h
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106122306.p5CN6PXt025718>
