Giter Site home page Giter Site logo

Comments (7)

gngrossi avatar gngrossi commented on August 24, 2024

GNU bash, version 5.2.0(1)-release (i370-ibm-openedition)

RC=(0) [SYSA] bash-5.2$ cat <(date) | xxd
00000000: e8cd c180 282f ca80 9194 8091 969a 9590 ▒▒▒..ʀ▒▒▒▒▒▒▒▒
00000010: 9a90 9180 e4e0 e880 1690 1693 8e ▒▒▒▒▒▒▒.▒.▒▒

RC=(0) [SYSA] bash-5.2$ cat <(date) | od -hc
0000000000 E8 CD C1 80 28 2F CA 80 91 94 80 91 96 9A 95 90
Y 315 A 200 050 \a 312 200 j m 200 j o 232 n 220
0000000020 9A 90 04 80 E4 E0 E8 80 16 90 16 93 8E
232 220 004 200 U \ Y 200 \b 220 \b l 216
0000000035

from bashport.

gngrossi avatar gngrossi commented on August 24, 2024

bashport_768/bash-5.2.20230319_200518.zos.pax.Z

This is now working as expected

bash-5.2$ cat <(date)
Mon Mar 20 18:18:27 CDT 2023

Is this working as expected? Should there be a /dev/fdxx returned?

bash-5.2$ echo <(date)
/u/@02858/tmp/sh-np.CechxQ

Getting the correct line count. Should there be a /dev/fdxx returned?

bash-5.2$ wc -l <(ssh l98misdb491 "cat *Yum")
4 /u/@02858/tmp/sh-np.AEBbxQ

from bashport.

IgorTodorovskiIBM avatar IgorTodorovskiIBM commented on August 24, 2024

I think there's two things going on here.

  1. It appears that our CI machines are not consistently setting HAVE_DEV_FD, not setting this triggers an alternate path to be used which create temporary files using mktemps. This is determine by the check test -r /dev/fd/0 which returns 0 on some of our CI machines and 1 on others.
  2. zoslib does not appear to handle untagged character devices properly, such as /dev/fd*. I'll look into this

from bashport.

gngrossi avatar gngrossi commented on August 24, 2024

bash-5.2$ bash --version | head -n1
GNU bash, version 5.2.15(1)-release (i370-ibm-openedition)

bash-5.2$ cat <(date)
cat: /dev/fd/63: EDC5135I Not a directory.

looks good

bash-5.2$ echo <(date)
/dev/fd/63

bash-5.2$ wc -l <(ssh l98misdb491 "cat *Yum")
wc: /dev/fd/63: EDC5135I Not a directory.

from bashport.

IgorTodorovskiIBM avatar IgorTodorovskiIBM commented on August 24, 2024

We noticed there's an inconsistency on some of our z/OS machines /dev/fd is a character device and not a directory. So we made a change to use FIFO special files and to also tag them as such:

[ITODORO@ZOSCAN2B ~/zopen/prod/bash/bin]$  ls -lT <(date)
t ISO8859-1   T=on  prw-------   1 ITODORO  SUDOGRP        0 Mar 24 11:28 /tmp/sh-np.ghEFxQ
[ITODORO@ZOSCAN2B ~/zopen/prod/bash/bin]$ /home/itodoro/zopen/prod/coreutils/bin/cat <(date)
Fri Mar 24 11:28:48 EDT 2023
[ITODORO@ZOSCAN2B ~/zopen/prod/bash/bin]$ /bin/cat  <(date)
Fri Mar 24 11:28:55 EDT 2023

from bashport.

gngrossi avatar gngrossi commented on August 24, 2024

Are these the final results to be expected? If so, I will close.
thanks

bash 5.2.15 (Build 799)

RC=(0) [SYSA] bash-5.2$ cat <(date)
Fri Mar 24 11:34:28 CDT 2023

RC=(0) [SYSA] bash-5.2$ echo <(date)
/u/@02858/tmp/sh-np.hcabxQ

RC=(0) [SYSA] bash-5.2$ wc -l <(ssh l98misdb491 "cat *Yum")
4 /u/@02858/tmp/sh-np.GAfdxQ

from bashport.

IgorTodorovskiIBM avatar IgorTodorovskiIBM commented on August 24, 2024

Yes, for now at least. At some point I'll revisit the /dev/fd issue as it may result in better performance. Opened issue #59

from bashport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.