-cd cp.testdir || exit 1; cp -RHL * ../cp.testdir2 2>&1; echo $?; cd .. || exit 1
-test ! -L cp.testdir2/file || echo BAD: file
-test ! -L cp.testdir2/file_symlink || echo BAD: file_symlink
-test ! -L cp.testdir2/dir || echo BAD: dir
-test ! -L cp.testdir2/dir_symlink || echo BAD: dir_symlink
-test ! -L cp.testdir2/dir/file || echo BAD: dir/file
-test ! -L cp.testdir2/dir/file_symlink || echo BAD: dir/file_symlink
+cd cp.testdir || exit 1; cp -RHL * ../cp.testdir2 2>&1; echo $?; cd ../cp.testdir2 || exit 1
+test ! -L file && test -f file || echo BAD: file
+test ! -L file_symlink && test -f file_symlink || echo BAD: file_symlink
+test ! -L dir && test -d dir || echo BAD: dir
+test ! -L dir_symlink && test -d dir_symlink || echo BAD: dir_symlink
+test ! -L dir/file && test -f dir/file || echo BAD: dir/file
+test ! -L dir/file_symlink && test -f dir/file_symlink || echo BAD: dir/file_symlink