Comments (4)
On Linux it works.
On Mac the shell reports a SIGPIPE after the negotiation procedure has completed successfully, but that's only part of the problem:
sgsh -c 'echo hi | sed s/^/a/'
still outputs nothing although the script completes successfully.
I notice a couple of differences in the way sgsh behaves on these two platforms.
I'll try to sort it out.
from dgsh.
For me it fails on stereo.
from dgsh.
I'm on stereo too.
I also located your script and used that; still successful.
/usr/local/sgsh/bin/bash --sgsh /.../simple 2>err
bthere
ahi
I notice the way you call sgsh and at first I thought it was a shorthand, but if not that's perhaps the reason.
from dgsh.
Excellent, both work fine. I thought sgsh
was a shorthand for bash --sgsh
.
[dds@stereo sgsh]$ bash --sgsh simple 2>/dev/null
ahi
bthere
[dds@stereo sgsh]$ bash --sgsh -c '{{ echo hi & echo there & }} | {{ sed s/^/a/ & sed s/^/b/ & }}' 2>/dev/null
bthere
ahi
from dgsh.
Related Issues (20)
- [RFE] Parallelize processes receiving different input streams HOT 8
- Timeout for negotiation when run interactively from dgsh HOT 10
- Bash raising 'no version information available' HOT 4
- error: 'dir_fd' may be used uninitialized in this function HOT 6
- Executable stack HOT 2
- Unable to Build on MacOs Mojave HOT 4
- How to background a process with dgsh HOT 1
- different example HOT 5
- rsync: getaddrinfo: translationproject.org 873: Temporary failure in name resolution HOT 2
- Named pipelines HOT 1
- Porting for 1) Natively on termux (Follows aarch64) 2)Ubuntu arm64 /(any other linux distro) running inside proot container on termux HOT 21
- can not compile - gnulib problem HOT 11
- Deadlock in dgsh-tee
- Avoid nout=0 on last pipe component HOT 6
- Optimize dgsh program detection
- Provide way to detect whether a script is running under dsgh? HOT 7
- Wrap rather than modify the source code of single-output commands HOT 1
- Document POSIX tools with dgsh capabilities
- Simple scripts failing with random "dgsh: timeout for negotiation" HOT 32
- Problem with grep (maybe) HOT 18
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 dgsh.