[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Does -e overrule -f in readlink?
From: |
Peng Yu |
Subject: |
Does -e overrule -f in readlink? |
Date: |
Sat, 24 Sep 2016 22:51:22 -0500 |
Hi, It seems that -e overrules -f in readlink at least according to
the following. If so, when -e is specified, specification of -f does
not change the result of readlink. Is it the case?
tmpdir=$(mktemp -d)
cd "$tmpdir"
ln -s z.txt d.txt
readlink -f d.txt
readlink -f -e d.txt || echo "$?"
readlink -e d.txt || echo "$?"'
--
Regards,
Peng
- Does -e overrule -f in readlink?,
Peng Yu <=