<p><pre><code>   echo &quot;Password: &quot;; read -s pass; stuff --pass &quot;$pass&quot;</code></pre>
Where stuff takes password as an argument. Alternatively you can start your line with a space character and it isn&#x27;t stored in your history.