title: Setting a variable in a one-liner Bash script
body: <p>Looking for a way to set a variable, in a bash one-liner, that is a script, such as:</p>
  
  <pre><code>export class={read -p "What Is Your Profession?" a; case $a in "Theif") echo "Stealth" ; in "Cleric") echo "Heals?" ; "Monk") echo "Focus?" ; *) echo "invalid choice" a; esac}
  </code></pre>
  
  <p>Although I'm having issues running this command without setting it to a one-liner, I've tried it numerous ways and I have gotten no results. The above was just the most clearly laid out in my eyes. I've also tried <code>VAR= ,</code></p>
  
  <p>The case itself gives me a </p>
  
  <pre><code>-jailshell: syntax error near unexpected token `('
  </code></pre>
  
  <p>whenever I run it with more than one case. I know this is probably all jumbled up.</p>