From: Nahid hasan Sagor Date: Fri, 27 Nov 2026 18:25:22 GMT Subject: Re: [RFC PATCH] quote: make sq_quote_buf_pretty() prettier Message-ID: In-Reply-To: > + /* '~' is only special if it is the first character */ > + if (*p == '~') { > + quote_it = true; > + p++; > } I may be misreading, but I think a leading '~' gets lost after the 'p++', so it never gets copied by strbuf_add(dst, p, q - p) later. That would make "~foo" come out as "'foo'".