title: How to recognize whether bash or dash is being used within a script?
body: <p>I'm writing a bash script and it throws an error when using "sh" command in Ubuntu (it seems it's not compatible with dash, I'm learning on this subject). So I would like to detect if dash is being used instead of bash to throw an error.</p>
  
  <p>How can I detect it in a script context?. Is it even possible?</p>