toolkit/func/core/pkg_coreutils/17-readlink.sh
2021-07-04 23:50:25 -07:00

6 lines
181 B
Bash
Executable file

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