realpath: let --relative-to default to --relative-base
authorEric Blake <eblake@redhat.com>
Wed, 14 Mar 2012 19:42:59 +0000 (13:42 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 15 Mar 2012 18:24:05 +0000 (12:24 -0600)
commit9f5aa4850133976eee22dcc0b506d7b632cd674c
tree868db0dba0e6b8dee1769deefe0417eae641571c
parent61167bae9f27269724dc577a19d2bd48a437bafb
realpath: let --relative-to default to --relative-base

Most of the time, if someone wants to filter which paths are
relative while leaving all others absolute, they also want to
to the filtering based on the same --relative-to directory.
Make this easier to specify.

* src/realpath.c (main): Convert error to default.
* doc/coreutils.texi (realpath invocation): Document this.
* tests/misc/realpath: Adjust test to match.
* NEWS: Document it.
NEWS
doc/coreutils.texi
src/realpath.c
tests/misc/realpath