toolkit/func/core/pkg_coreutils/17-readlink.sh
2023-11-21 01:23:44 -07:00

6 lines
193 B
Bash
Executable file

#!/bin/bash
r_log "coreutils" "Testing readlink"
trap "/bin/rm /var/tmp/listen" EXIT
ln -s /var/tmp/talk /var/tmp/listen
readlink /var/tmp/listen | grep -q "/var/tmp/talk"
r_checkExitStatus $?