diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2018-06-01 18:25:29 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-08-29 11:22:05 +0800 |
commit | 78a00a7471c059c9d7055f633c060106596de4fb (patch) | |
tree | 699241e0db6602fa9ca14e74a25d58529a86e905 /src/system.c | |
parent | memalloc: Avoid looping in growstackto (diff) | |
download | dash-78a00a7471c059c9d7055f633c060106596de4fb.tar.gz dash-78a00a7471c059c9d7055f633c060106596de4fb.zip |
expand: Ensure result is escaped in cvtnum
The minus sign generated from arithmetic expansion is currently unquoted which causes anomalies when the result is used in where the quoting matters. This patch fixes it by explicitly calling memtodest on the result in cvtnum. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'src/system.c')
0 files changed, 0 insertions, 0 deletions