title: Run BASH built-in commands in Python?
body: <p>Is there a way to run the BASH built-in commands from Python?</p>
  
  <p>I tried:</p>
  
  <pre><code>subprocess.Popen(['bash','history'],shell=True, stdout=PIPE)
  
  subprocess.Popen('history', shell=True, executable = "/bin/bash", stdout=subprocess.PIPE)
  
  os.system('history')
  </code></pre>
  
  <p>and many variations thereof. I would like to run <code>history</code> or <code>fc -ln</code>.</p>