On Thu, 14 Apr 2022 08:46:50 +0800, David Crayford wrote:
>>>
>> Can the behavior be replicated with /bin/sh?
>
>Worth a try.
> 
Indeed.  If the same bug exists in both shells Rocket is likely
to fix it sooner than IBM.

>The fact that it's using pipe operators implies the shell is in play. 
>
I *believe* pipe is a kernel facility which shell invokes with C RTL
calls (pipe(); fork(); exec(); dup2; ... ).  Shell doesn't actually move
the data.  But there's plenty wiggle room in the options shell 
supplies to those C RTL calls: it might be able to enable/disable 
autoconversion or tag the descriptors with CCSIDs (incorrectly?)

An IBM expert averred long ago on MVS-OE that the actual
conversion is performed by kernel.

>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
>>> ********************************************************************************

-- 
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to