Date: Mon, 4 Jan 1999 07:56:39 -0500 (EST) From: Thomas David Rivers <rivers@dignus.com> To: astralblue@usa.net, freebsd-bugs@FreeBSD.ORG Subject: Re: bin/3246: mtree -c should escape whitespace and special characters Message-ID: <199901041256.HAA02103@lakes.dignus.com> In-Reply-To: <199901041220.EAA26989@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Eugene... I really like the improvements you made to mtree, but I was wondering, why did you pick "%nn" as the escape? Wouldn't it have been more "C-like" to use "\nnn","\xnn" and "\c"? I would guess that the backslash is a little more unlikely as an existing file character (unless we consider Windows)... It seems a shame to invent yet-another character escaping mechanism. In this case, to note a space, the simple: I\ have\ spaces would work, and would appear a little more obvious to the reader (those really are spaces.) Similarly, I\x20\have\x21special\x22chars would work for putting in special characters... Just a thought... - Dave Rivers - To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901041256.HAA02103>
