Skip to content

Instantly share code, notes, and snippets.

@paulgeringer
Created April 21, 2016 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulgeringer/cf413d798816f4e2ff112e3e054f40f6 to your computer and use it in GitHub Desktop.
Save paulgeringer/cf413d798816f4e2ff112e3e054f40f6 to your computer and use it in GitHub Desktop.
a terrible idea
#!/usr/bin/env ruby
puts "export testest='thing'\nexport shizz='bang'"
#!/bin/bash
output=$(./doing_the_needful)
eval "$output"
echo $testest #=> thing
echo $shizz #=> shizz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment