title: How can I avoid a "no match" error in this C shell script?
body: <p>Consider the following C shell script:</p>
  
  <pre><code>set MYVAR = "a='str.*' -p -10"
  set output = `echo "$MYVAR" | sed 's/-p -[0-9]\+/-p -100/g'`
  echo "$output"
  </code></pre>
  
  <p>When sourced from the shell, I get the error <code>echo: no match</code>. What changes can I make to the script to avoid the error? I tried adding ":q" and using a Perl one liner but haven't found an elegant solution.</p>