From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28363 invoked by alias); 11 May 2011 17:08:58 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29231 Received: (qmail 6216 invoked from network); 11 May 2011 17:08:41 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at csr.com does not designate permitted sender hosts) Date: Wed, 11 May 2011 18:07:48 +0100 From: Peter Stephenson To: Subject: Re: PATCH: expanding parameters like echo/print builtins Message-ID: <20110511180748.18f4e67e@pwslap01u.europe.root.pri> In-Reply-To: References: <1305118971-25617-1-git-send-email-mikachu@gmail.com> <20110511172114.56080d04@pwslap01u.europe.root.pri> Organization: Cambridge Silicon Radio X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.103.11.49] X-Scanned-By: MailControl A_10_80_00 (www.mailcontrol.com) on 10.71.0.127 On Wed, 11 May 2011 18:38:46 +0200 Mikael Magnusson wrote: > The c and e flags will have tendencies to output unprintable > characters, can I write them in the expected test output somehow? The way to do this is to capture the output via a pipe or $(...) or whatever and then make that output readable by using ${(q)...} or something such. There will be examples somewhere. This does rely on the shell getting the reverse conversion right, but we test the features its relying on elsewhere so in theory we shouldn't get errors cancelling each other out. (I'm loath to rely on od, and certainly xxd isn't standard enough.) -- Peter Stephenson Software Engineer Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom