From owner-freebsd-bugs Mon Jan 4 04:55:48 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA10237 for freebsd-bugs-outgoing; Mon, 4 Jan 1999 04:55:48 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from smtp1.vnet.net (smtp1.vnet.net [166.82.1.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA10230 for ; Mon, 4 Jan 1999 04:55:46 -0800 (PST) (envelope-from rivers@dignus.com) Received: from dignus.com (ponds.vnet.net [166.82.177.48]) by smtp1.vnet.net (8.9.1a/8.9.1) with ESMTP id HAA23877; Mon, 4 Jan 1999 07:55:45 -0500 (EST) Received: from lakes.dignus.com (lakes.dignus.com [10.0.0.3]) by dignus.com (8.9.1/8.8.5) with ESMTP id IAA02872; Mon, 4 Jan 1999 08:37:46 -0500 (EST) Received: (from rivers@localhost) by lakes.dignus.com (8.9.1/8.6.9) id HAA02103; Mon, 4 Jan 1999 07:56:39 -0500 (EST) Date: Mon, 4 Jan 1999 07:56:39 -0500 (EST) From: Thomas David Rivers Message-Id: <199901041256.HAA02103@lakes.dignus.com> To: astralblue@usa.net, freebsd-bugs@FreeBSD.ORG Subject: Re: bin/3246: mtree -c should escape whitespace and special characters In-Reply-To: <199901041220.EAA26989@freefall.freebsd.org> Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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