From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29604 invoked by alias); 11 Jan 2014 22:23:51 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18318 Received: (qmail 9535 invoked from network); 11 Jan 2014 22:23:44 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.2 Message-ID: <52D1C33A.7080803@gmx.com> Date: Sat, 11 Jan 2014 17:18:34 -0500 From: Eric Cook User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: zsh-users@zsh.org Subject: Trailing whitespace after $'\0' with external commands Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:yA9HTVFrh7KQNTkeS4uPkwtGfcfVLjgIc24dnCQ2BGEXFngMIRn bCB4dljWz4c2e8KCG7NThx3rns9QGGzr+a7e6IbN2WfZNJTGS0V6ToMWO+Ws7irQN3YyOFB NViX4N0ArulaHzfNWErBYTkH2xq1TRvYWbCES3l4bpDS2PZZBEOAA1fWHqdXy9ufB5FBtcH /Ng/KkDLF4jb9RAmOTJgQ== I've noticed trailing whitespace is ignored when it appears immediately after $'\0'. i am unsure if this is intended behavior or not. % zsh -c "/usr/bin/printf '<%s>' $'\0'' '; echo" <> % zsh -c "printf '<%s>' $'\0'' '; echo" < > % ksh93 -c "/usr/bin/printf '<%s>' $'\0'' '; echo" < > % ksh93 -c "printf '<%s>' $'\0'' '; echo" < > % ksh93 -c "type printf" printf is a shell builtin % If the whitespace appears before the $'\0', it prints. % zsh -c "/usr/bin/printf '<%s>' ' '$'\0'; echo" < > % zsh -c "printf '<%s>' ' '$'\0'; echo" < >