Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Rewrite chruby-exec as a function #127

Open
postmodern opened this Issue · 2 comments

3 participants

@postmodern
Owner

If chruby-exec were a function, it would always run in the current shell. It could also reuse other chruby functions.

Pseudo Code

function chruby_exec()
{
  (chruby $arguments && eval $command)
}
@postmodern postmodern was assigned
@halostatue

If chruby-exec is a function, won't it no longer be usable as a way to use chruby-based installs via cron?

@postmodern
Owner

Correct. It would force users to explicitly invoke chruby-exec within a shell. This would be one way to prevent users from invoking chruby-exec under the dash shell. Of course, maybe people should just go back to bash -l -c "chruby ...; command here".

@havenwood havenwood added the exec label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.