Comments (7)
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.
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.
I think there's two things going on here.
- 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. - zoslib does not appear to handle untagged character devices properly, such as /dev/fd*. I'll look into this
from bashport.
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.
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.
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.
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)
- #! used with script as command does not work.
- performance issues HOT 12
- guidance on shells HOT 10
- download failure HOT 5
- Investigate HAVE_HASH_BANG_EXEC induced git bug
- bash raises protection exception in Jenkins groovy environment
- netstat not found from the bash shell HOT 2
- awk issue under zot bash HOT 1
- ctrl+arrow isn't handled HOT 1
- upgrade to at least 5.2.15 HOT 1
- bash "type ping" is not able to point to external link ping command. HOT 1
- how to work with existing rocket env vars for bash HOT 2
- Wait command different behavior in bash
- Process substitution issues when using /dev/fd HOT 3
- Remove setting _CEE_RUNOPTS, _TAG_REDIR_IN etc from .env
- Bash does not source users bashrc file when started by non-interactive ssh command
- Bash garbling output after stderr to stdout redirection and then piping to tee
- A question about bash pipe(|) HOT 2
- A question about bash pipe(|) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bashport.