coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does -e overrule -f in readlink?


From: Pádraig Brady
Subject: Re: Does -e overrule -f in readlink?
Date: Sun, 25 Sep 2016 13:48:03 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

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 -f d.txt
> readlink -f -e d.txt || echo "$?"
> readlink -e d.txt || echo "$?"'

The last specified mode of -e -f -m takes precedence.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]