summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/getchar.c
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2010-04-03 20:55:56 +0000
committerjilles <jilles@FreeBSD.org>2010-04-03 20:55:56 +0000
commit631cfa174839a86bceb027b45b94ae4c25a16df6 (patch)
tree9ebac13ec5b096431bd0cc65726335c41fd8c3fb /lib/libc/stdio/getchar.c
parent840173ec99f4f9addaad9214d467479f35ab3997 (diff)
downloadFreeBSD-src-631cfa174839a86bceb027b45b94ae4c25a16df6.zip
FreeBSD-src-631cfa174839a86bceb027b45b94ae4c25a16df6.tar.gz
sh: Fix various things about expansions:
* remove the backslash from \} inside double quotes inside +-=? substitutions, e.g. "${$+\}a}" * maintain separate double-quote state for ${v#...} and ${v%...}; single and double quotes are special inside, even in a double-quoted string or here document * keep track of correct order of substitutions and arithmetic This is different from dash's approach, which does not track individual double quotes in the parser, trying to fix this up during expansion. This treats single quotes inside "${v#...}" incorrectly, however. This is similar to NetBSD's approach (as submitted in PR bin/57554), but recognizes the difference between +-=? and #% substitutions hinted at in POSIX and is more refined for arithmetic expansion and here documents. PR: bin/57554 Exp-run done by: erwin (with some other sh(1) changes)
Diffstat (limited to 'lib/libc/stdio/getchar.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud