I want to check in a shell script whether subversion is installed.
For that I chose to check the exit code after the program has been executed.
I tried using
command svn, but that prints out the output of the command (Type 'svn help' for usage.).
If I suppress it with
2>/dev/null the result is an empty string.
How could I make it work?