title: echo $PS1 in script
body: <p>Silly question, but since I'm such a newbie at Linux OS, I'm having trouble to make this simple script to echo the result of <code>PS1</code>.</p>
  
  <p>If I type <code>echo $PS1</code> in bash, it shows me the result, but not in the script. It returns blank.</p>
  
  <p>Example:</p>
  
  <pre><code>#!/bin/bash
  ps1=$(echo $PS1) 
  echo $ps1
  </code></pre>
  
  <p>Any tips for a begginer?</p>
  
  <p>Thanks in advance.</p>