radare / spp

simple preprocessor
MIT License
60 stars 11 forks source link

fix -o #1

Closed jpouellet closed 10 years ago

jpouellet commented 10 years ago

-o didn't actually redirect output to that file, it just created it and left it empty, still writing to stdout. This patch fixes that.

before:

$ cat foo
hello world!
$ spp -o bar foo
hello world!
$ cat bar
$ 

after:

$ cat foo
hello world!
$ spp -o bar foo
$ cat bar
hello world!
$