From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from calrissian.rohieb.name ([81.20.132.56] helo=rohieb.name) by metis.ext.pengutronix.de with esmtp (Exim 4.84_2) (envelope-from ) id 1eKYJJ-0006GT-LP for ptxdist@pengutronix.de; Fri, 01 Dec 2017 00:32:05 +0100 From: Roland Hieber Date: Fri, 1 Dec 2017 00:31:29 +0100 Message-Id: <20171130233130.16278-2-rohieb@rohieb.name> In-Reply-To: <20171130233130.16278-1-rohieb@rohieb.name> References: <20171130233130.16278-1-rohieb@rohieb.name> Subject: [ptxdist] [PATCH 1/2] install_replace_figlet: allow escaping the figlet output List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Roland Hieber QWxsIGtub3duIGdldHR5cyBpbiBQVFhkaXN0IGFsbG93IGluc2VydGluZyB2YXJpYWJsZXMgaW50 byAvZXRjL2lzc3VlIGJ5CnByZWZpeGluZyBjZXJ0YWluIGNoYXJhY3RlcnMgd2l0aCBiYWNrc2xh c2hlcyAoZS5nLiBhIGxpdGVyYWwgJ1x2JwpleHBhbmRzIHRvIHRoZSBrZXJuZWwgdmVyc2lvbiBm cm9tIHVuYW1lIC12KS4gSW4gdGhpcyBjYXNlLCAnXCdzIGluIHRoZQpmaWdsZXQgb3V0cHV0IG11 c3QgYmUgZXNjYXBlZCBhY2NvcmRpbmdseSBzbyB0aGV5IGFyZSBkaXNwbGF5ZWQgYXMgJ1wncwpv biB0aGUgc2NyZWVuLgoKRm9yIHJlYWRhYmlsaXR5LCByZWZhY3RvciB0aGUgY29kZSBpbnRvIGEg bmV3IGxvY2FsIGZ1bmN0aW9uLiBUaGVuCmFkZCBhIG5ldyBwYXJhbWV0ZXIgZGVzY3JpYmluZyB0 aG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