Keep $LIBS as user-specified libraries only

Normally detected libraries are automatically added to $LIBS, but we
use $LDLIBS to build the list of libraries. So don't add these
libraries to $LIBS to avoid duplicates.

Signed-off-by: Steve Bennett <steveb@workware.net.au>
file: add support for file link

Currently only on systems that support both hard and symbolic links.
Update docs for 'file link' and some other [file] commands

Signed-off-by: Steve Bennett <steveb@workware.net.au>
glob: bug fixes and Tcl compatibility

Fix the case where the pattern/filename contains a space
Respect the —tails option, but generate an error if -types is given.
Change the error message on no match to be Tcl-compatible

Signed-off-by: Steve Bennett <steveb@workware.net.au>
glob: add additional tests

Import some additional tests from the Tcl test suite.
Add more Tcl compatibility to tcltest.tcl

Signed-off-by: Steve Bennett <steveb@workware.net.au>
docs: update documentation for recent changes

Signed-off-by: Steve Bennett <steveb@workware.net.au>