Some versions of mv print help output to stderr rather than stdout. This breaks the check to see if mv supports --backup and also prints help text to the console. If we pipe stderr to stdin that should make unrarall more platform independent.
You can check the different behavior of mv with:
docker run --rm -it ubuntu bash -c 'mv --help 1>/dev/null' # doesn't print any output
docker run --rm -it alpine ash -c 'mv --help 1>/dev/null' # prints output
Some versions of
mv
print help output to stderr rather than stdout. This breaks the check to see ifmv
supports--backup
and also prints help text to the console. If we pipe stderr to stdin that should make unrarall more platform independent.You can check the different behavior of
mv
with: