Giter Club home page Giter Club logo

Comments (6)

mislav avatar mislav commented on May 27, 2024

No, we're not going to do anything tricky like that. If you find yourself needing to do some shell functions/piping across rbenv versions, you could simply:

for v in `rbenv versions --bare`; do RBENV_VERSION=$v gem list | grep "a b"; done

from rbenv-each.

chino avatar chino commented on May 27, 2024

Yea, I just basically took that and change it to call eval "$@" and it seems to work great...

Would be cool if rbenv-each supported it.

from rbenv-each.

mislav avatar mislav commented on May 27, 2024

I want to refrain from doing eval internally since that is not how I want people to use rbenv-each.

However you can always execute bash interpreter with any script that you want:

rbenv each bash -c 'gem list | grep "a b"'

from rbenv-each.

chino avatar chino commented on May 27, 2024

Hm, your right. I forget off top of my head and I'm on road right now but
does rbenv support aliases? It could be a simple handy alias.

On Wed, Jan 21, 2015, 6:20 PM Mislav Marohnić [email protected]
wrote:

I want to refrain from doing eval internally since that is not how I want
people to use rbenv-each.

However you can always execute bash interpreter with any script that you
want:

rbenv each bash -c 'gem list | grep "a b"'


Reply to this email directly or view it on GitHub
#14 (comment)
.

from rbenv-each.

mislav avatar mislav commented on May 27, 2024

rbenv doesn't support aliases but your shell does ;)

alias rbenv-each-eval='rbenv each bash -c'

from rbenv-each.

chino avatar chino commented on May 27, 2024

I agree. However I do like git aliases even though they could just be
shell aliases :)

On Wed, Jan 21, 2015, 7:10 PM Mislav Marohnić [email protected]
wrote:

rbenv doesn't support aliases but your shell does ;)

alias rbenv-each-eval='rbenv each bash -c'


Reply to this email directly or view it on GitHub
#14 (comment)
.

from rbenv-each.

Related Issues (6)

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.