I have been using the below code ok for sometime, but now, I get an error
java Editor < "input/editor$i.in" > "tmp/editor$i.out"
diffCurr="$(diff "tmp/editor$i.out" "output/editor$i.out")"
if [ -n $diffCurr ]
Error (occurs on last line of above snippet):
[: too many arguments
Whats wrong? I am trying to test that the diff result was empty (ie. same contents in file)
