Closed dspinellis closed 7 years ago
Consider the following command
#!/usr/bin/env dgsh row() { dgsh -c "dgsh-parallel -n 5 'echo C{}' | paste" } matrix() { dgsh -c "/home/dds/libexec/dgsh/dgsh-parallel -n 5 row" } export -f row matrix call matrix | cat
dgsh-parallel
[dds@stereo dgsh]$ example/5x5.sh ▒▒▒▒▒▒▒▒▒7▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒7/home/dds/libexec/dgsh/bash --dgsh --dgsh-negotiate /tmp/dgsh-parallel-14282
I realize that this can be fixed by attaching cat in the matrix statement, but we should somehow error and abort when dgsh commands hanve dangling I/O.
cat
matrix
Fixed in https://github.com/dspinellis/dgsh/commit/fd923aa0e5d28de59833f22d7b91017ac0bef8b2
Consider the following command
dgsh-parallel
path.I realize that this can be fixed by attaching
cat
in thematrix
statement, but we should somehow error and abort when dgsh commands hanve dangling I/O.