Re: [dev] [surf] [PATCH] Fixed SETPROP() macro behaviour in config.def.h to handle escapes correctly.

From: Nick <suckless-dev_AT_njw.me.uk>
Date: Thu, 21 Mar 2013 16:04:41 +0000

On Thu, Mar 21, 2013 at 07:26:23PM +0400, Alexander Sedov wrote:
> xprop prints information in format PROPERTY(STRING) = "escaped string",
> which causes problem with repeated Ctrl-F: any non-ascii turns into
> \ooo\ooo, this later turns into \\ooo\\ooo, and so on. To de-escape
> string, echo -en is used, getting information from xargs -0; without
> -0 xargs will try to handle escapes by itself and also do shenanigans
> with quotes, which is totally undesired.

Can this be done with printf? ISTR echo -en isn't posix, whereas
printf is well defined.
Received on Thu Mar 21 2013 - 17:04:41 CET

This archive was generated by hypermail 2.3.0 : Thu Mar 21 2013 - 17:12:05 CET