Re: Does -e overrule -f in readlink?

2016-09-25 Thread Pádraig Brady
On 25/09/16 04:51, Peng Yu wrote: > 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

Does -e overrule -f in readlink?

2016-09-24 Thread Peng Yu
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 "$?" readlin