Patrick GARCIA wrote: > I am just saying that calling "realpath" on "." or on "$PWD" should always > have the same result. I face a case where it si not true. can you see it is > a bug ?
With your example setup, I get: $ mkdir -p /tmp/phisical_dir $ ln -sf phisical_dir /tmp/logical_dir $ cd -L /tmp/logical_dir $ realpath -L . /tmp/phisical_dir $ realpath -L $PWD /tmp/phisical_dir $ realpath -L -s . /tmp/phisical_dir $ realpath -L -s $PWD /tmp/logical_dir I understand you have a preference for the result '/tmp/logical_dir'. One of the 4 shown realpath invocations, with appropriate options and argument, shows that result. Which of the three other shown realpath should, in your opinion, have the result '/tmp/logical_dir' instead of '/tmp/phisical_dir'? And why? Once you have explained that, Pádraig (who wrote the realpath program in the first place) can judge whether he thinks it is a bug or not. Bruno
