Trying to do diff by typing next:
$ diff -c $(rpm -qpR prev/p.src.rpm 2>/dev/null) $(rpm -qpR curr/p.src.rpm 2>/dev/null)
diff: extra operand `<='
diff: Try `diff --help' for more information.
How can I change my arguments for normal script working?
can you try executing the script this way:
This should substitute the command between “<()” as a process. This will create a named pipe and they will be given to diff as a file to compare. Allowing you to execute the above directly in a script.