summary refs log tree commit diff
path: root/src/bltin/printf.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-09-25 22:29:00 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2007-09-25 22:29:00 +0800
commit7cfd8be0dc83342b4a71f3a8e5b7efab4670e50c (patch)
tree58bea2cd50124e8599e4ebdbbd2f622138bdc8c2 /src/bltin/printf.c
parent[EXPAND] Do not expand tilde in parameter expansion within quotes (diff)
downloaddash-7cfd8be0dc83342b4a71f3a8e5b7efab4670e50c.tar.gz
dash-7cfd8be0dc83342b4a71f3a8e5b7efab4670e50c.zip
[EXPAND] Move parse-time quote flag detection to run-time
Because the parser does not recursively parse parameter expansion with respect
to quotes, we can't accurately determine quote status at parse time.  This
patch works around this by moving the quote detection to run-time where we
do interpret it recursively.

Test case:

	foo=\\
	echo "<${foo#[\\]}>"

Old result:

	<\>

New result:

	<>
Diffstat (limited to 'src/bltin/printf.c')
0 files changed, 0 insertions, 0 deletions
aa618&follow=1'>Apply some bold to trips renderingJune McEnroe 2024-09-08Render trips hopefully more efficientlyJune McEnroe 2024-09-08Allow removing bodies and lensesJune McEnroe 2024-09-08Limit body width so it looks less silly on desktopJune McEnroe 2024-09-07Handle no film being loadedJune McEnroe 2024-09-07Fancy up the text a littleJune McEnroe