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

7 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 $?