[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash 4.4 null byte warning!!

From: Chet Ramey
Subject: Re: bash 4.4 null byte warning!!
Date: Fri, 7 Apr 2017 22:17:59 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.0

On 4/6/17 3:47 AM, address@hidden wrote:
> Hi,
> We are trying to use the bash 4.4 downloaded from
> http://ftp.gnu.org/gnu/bash/ on our RHEL 6.2 machine.
> But while using a script that has this command :
> FIND_RPM=`find /opt/RPM/components -type d -name enum-1.1.6-print0`
> It throws a warning as below:
> bash:warning:command substitution:ignored null byte ininput

Yes.  It drops the null bytes because C strings can't handle them.  I
received bug reports asking why bash silently transforms the command
substitution output and added the warning while not changing the behavior.

If you want to suppress the warning, you'll have to edit the source and

This does beg the question of why you're using -print0 without something
on the receiving end to handle the null bytes.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]