Skip to content

Instantly share code, notes, and snippets.

@navicore
Last active November 12, 2016 15:37
Show Gist options
  • Select an option

  • Save navicore/870eda98e3b385d8486d9d4e9ef4592f to your computer and use it in GitHub Desktop.

Select an option

Save navicore/870eda98e3b385d8486d9d4e9ef4592f to your computer and use it in GitHub Desktop.
bash eval crashing with parans
#!/usr/bin/env bash
set -e
ATC_HOME="https://some.com/mydir"
#text="say *hiya*"
#text="say *hiya* to [this]"
#text="say *hiya* to [this]\(stuff\)"
text="~say~ *hiya* __to__ [this]\(${ATC_HOME}/stuff\)"
echo "text:: $text"
text=`eval echo $text`
echo $text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment