On 4/6/17 3:47 AM, emlyn.j...@wipro.com 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
rebuild.

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    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to