On 13/4/22 21:24, Paul Gilmartin wrote:
On Wed, 13 Apr 2022 14:19:48 +0800, David Crayford wrote:
I suspect a bug with bash. You should post your repeatable test case on
Rockets z/OS Open Source Ported Tools forum. Can you enter bash
--version to get the version. I know Rocket recently released a new
ASCII version of bash using their z/OS port of gcc.
Can the behavior be replicated with /bin/sh?
Worth a try.
The OP posted a case later than the one you cited, largely
"iconv file | head". He needed to add "-B" to "head" to
make it work. I don't see shell involvement there.
The fact that it's using pipe operators implies the shell is in play. As
I said, I would take this to Rockets forum which is a more appropriate
place to discuss bash.
But
does bash supply unsolicited arguments to utilities?
Appendix L describes too many knobs and levers.
On Tue, 12 Apr 2022 13:00:30 -0500, Michael Babcock wrote:
I had to add the -B to prevent “head” from doing autoconvert on the file.
-bash-4.3# iconv -f ISO8859-1 -t IBM-1047 trace_large.log | head -B
********************************************************************************
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN