Re: [v2 PATCH] expand: Escape minus sign in arithmetic expansion

2018-05-31 Thread Jilles Tjoelker
On Tue, May 29, 2018 at 02:00:26AM +0800, Herbert Xu wrote: > On Mon, May 28, 2018 at 12:22:00AM +0800, Herbert Xu wrote: > > The minus sign generated from arithmetic expansion is currently > > unquoted which causes anomalies when the result is used in where > > the quoting matters. > > This

[v2 PATCH] expand: Escape minus sign in arithmetic expansion

2018-05-28 Thread Herbert Xu
On Mon, May 28, 2018 at 12:22:00AM +0800, Herbert Xu wrote: > 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 for the minus > sign. >