Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Rewrite chruby-exec as a function #127

Open
postmodern opened this Issue · 2 comments

3 participants

Postmodern Austin Ziegler Shannon Skipper
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
Austin Ziegler

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".

Shannon Skipper 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.