Expect not accepting negative values <p>I am trying to run <code>expect</code> with negative values. But I'm getting bad flag error.</p> <p>Test File:</p> <pre><code>echo "Enter Number:" read num echo $num </code></pre> <p>Expect File:</p> <pre><code>spawn sh test.sh expect -- "Enter Number:" {send "-342345"} </code></pre> <p>I even tried to escape negative values with <code>\</code> option still it's not working.</p>