You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
261 B

#!/bin/bash
# Author: Alice Kaerast <alice@kaerast.info>
t_Log "$0 checking readlink prints target of a symlink"
ln -s /var/tmp/foo /var/tmp/readlink-test
readlink /var/tmp/readlink-test | grep -q "/var/tmp/foo"
t_CheckExitStatus $?
rm /var/tmp/readlink-test