Giter Club home page Giter Club logo

Comments (4)

mfragkoulis avatar mfragkoulis commented on June 8, 2024

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.

dspinellis avatar dspinellis commented on June 8, 2024

For me it fails on stereo.

from dgsh.

mfragkoulis avatar mfragkoulis commented on June 8, 2024

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.

dspinellis avatar dspinellis commented on June 8, 2024

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)

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.