Permalink
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...
1 parent c844116 commit 6e3e917775cf57fd04ee6c74784e6f1665a75853 @wpwrak wpwrak committed Jan 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 6e3e917

Please sign in to comment.