[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Command substitution with null bytes generates warning
From: |
Eric Pruitt |
Subject: |
Re: Command substitution with null bytes generates warning |
Date: |
Wed, 5 Oct 2016 07:34:56 -0700 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Wed, Oct 05, 2016 at 09:20:58AM -0400, Chet Ramey wrote:
> Try the attached patch, which reduces the number of warnings to 1 per call
> to command substitution.
I don't agree with this approach -- I think you should be able to turn
off the warning completely, so I am not interested in testing the patch.
In the script where I ran into this problem, I simply suppressed the
warning using 2>&-, and that's what I will continue to do if I will
knowingly read files that contain null bytes.
Eric