title: How to exit bash script with case statement?
body: <p>I have the following script :</p>
  
  <pre><code>#!/bin/sh
  #Script bc : Celsius &lt;-&gt; Fahrenheit
  
  echo "Temperature ?"
  read Temp
  
  echo "Celsius or Fahrenheit ?"
  echo "c) Celsius"
  echo "f) Fahrenheit"
  read case;
  
  Celsius=$(echo "scale=1;(($Temp-32)/9)*5;" | bc)
  Fahrenheit=$(echo "scale=1;(($Temp/5)*9)+32;" | bc)
  
  case $case in
  
  c) read Celsius | echo "Temp. F : "$Fahrenheit;;
  f) read Fahrenheit | echo "Temp. C : "$Celsius;;
  
  esac
  </code></pre>
  
  <p>My problem is that, after the answer is (correctly) given, I am not brought back to the prompt. I have to make a carriage return in order to end that script and return to the prompt.</p>
  
  <p>What do I miss ?</p>
  
  <p>Thanks in advance</p>
  
  <p>ThG</p>