Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

tools/asm/pfpu: fix processing of option -i

The option -i wasn't shifted off, causing pfpuasm and ultimately cpp
to fail.
  • Loading branch information...
commit 6e3e917775cf57fd04ee6c74784e6f1665a75853 1 parent c844116
Werner Almesberger wpwrak authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tools/asm/pfpu
2  tools/asm/pfpu
View
@@ -1,6 +1,6 @@
#!/bin/sh
reg="sed 's/^[^#]*# R[0-9]* = //'"
-[ "$1" = -i ] && reg=cat
+[ "$1" = -i ] && { reg=cat; shift; }
trap "rm -f _out$$" 0
./pfpuasm "$@" >_out$$ || exit
nc -i 1 -C -t -v ${M1_HOST:-m1} telnet <<EOF
Please sign in to comment.
Something went wrong with that request. Please try again.