Rewrite chruby-exec as a function #127

Open
postmodern opened this Issue Apr 12, 2013 · 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 Apr 12, 2013
@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 Sep 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment