Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
rvmsudo confused by exported multiline bash functions #1094
If the environment includes an exported multiline bash function containing "RUBY" or "GEM", rvmsudo may report a syntax error in the "eval" command. I am using rvm 1.15.8 (stable).
To reproduce the syntax error, run the following commands:
The "rvmsudo" command will produce the following error:
I think the following may be sufficient to filter out exported functions when invoking sudo: