Giter Club home page Giter Club logo

Comments (5)

wu avatar wu commented on May 21, 2024

Test output on OS X:

ok 1 - checking that we could find plenv perl shim
This is a test
ok 2 - shell script executes shim directly, passing in path to perl script
/tmp/tmpdir-sNy0SzhPIR/test.pl: line 2: print: command not found
not ok 3 - shell script executes script using shebang

Failed test 'shell script executes script using shebang'

at broken.t line 52.

This is a test
ok 4 - shell script executes script using shebang, with work-around
1..4

Looks like you failed 1 test of 4.

from plenv.

tokuhirom avatar tokuhirom commented on May 21, 2024

Hmm. I guess it's spec....

from plenv.

wu avatar wu commented on May 21, 2024

Interestingly, this bug happens when the shell script is bash, but not if it is zsh. I made a few updates to the test script, including a test for zsh.

from plenv.

wu avatar wu commented on May 21, 2024

This appears to be a limitation or bug in bash, not an issue with plenv. I added a test case that illustrates the underlying issue, without plenv. I have also confirmed that none of the plenv shims or scripts are even executed when the bug is exercised.

Also, just FYI, I am also seeing this issue on FreeBSD.

from plenv.

wu avatar wu commented on May 21, 2024

This same issue does appear to affect rbenv. I put some more details and examples here:

https://github.com/wu/journal/blob/master/2014.01.05.plenv-shebang.org

from plenv.

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.