From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: detlevvandaele Newsgroups: gmane.emacs.bugs Subject: bug#28865: 26.0.90; broken symlink behaviour in read-file-name on OS X (High Sierra) Date: Mon, 16 Oct 2017 15:34:55 +0200 Message-ID: <880f5f86-3cbd-4b47-9c08-b36e9f2087b1@Spark> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="59e4b62f_643c9869_173" X-Trace: blaine.gmane.org 1508162367 32621 195.159.176.226 (16 Oct 2017 13:59:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 16 Oct 2017 13:59:27 +0000 (UTC) To: 28865@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 16 15:59:19 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e45vD-0006WY-Um for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Oct 2017 15:59:12 +0200 Original-Received: from localhost ([::1]:33159 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e45vL-0003hG-AG for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Oct 2017 09:59:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40355) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e45vB-0003gZ-1A for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 09:59:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e45v4-0003bW-IO for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 09:59:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35237) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e45v4-0003b7-CE for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 09:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e45v4-0008HF-2J for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 09:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: detlevvandaele Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Oct 2017 13:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28865 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150816233831806 (code B ref -1); Mon, 16 Oct 2017 13:59:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Oct 2017 13:58:58 +0000 Original-Received: from localhost ([127.0.0.1]:43918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e45uz-0008Gv-FM for submit@debbugs.gnu.org; Mon, 16 Oct 2017 09:58:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43713) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e45ax-0007V6-8K for submit@debbugs.gnu.org; Mon, 16 Oct 2017 09:38:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e45ao-0007dx-Ks for submit@debbugs.gnu.org; Mon, 16 Oct 2017 09:38:10 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:37830) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e45ao-0007do-ES for submit@debbugs.gnu.org; Mon, 16 Oct 2017 09:38:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e45ak-0001b8-RF for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 09:38:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e45ah-0007Z2-De for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 09:38:02 -0400 Original-Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]:46497) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e45ag-0007Xg-VB for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 09:37:59 -0400 Original-Received: by mail-wm0-x235.google.com with SMTP id m72so3416222wmc.1 for ; Mon, 16 Oct 2017 06:37:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version; bh=RozSEnKUTxo/HvpbklM4eMr938cWMqeCg6FISlfWrYU=; b=le6k1D4mSUyqXyZ83za/ZyEe7fxz/tMhE9UfDMxVJ5KT/9vX0vsLT7e6tdzJ79/WsW SzyBmcxh2lX45WBexsqHXGazpfjXibd3zi2Sf+DF9Eq4g8JjXXEWN0QW4xWiIuSJbMca PL7wZOfaxjN6Img826vLDieGGU3iNtA9Ye8JzdW5EibNF3dJ9jTqbVL9CK2/HCQPLeuu 9uS7aQcumcnCiVA+YcwhOmDt18XHYFIN0r2DZwtYAC3Omq1nko/PST9rrsBKU3vhqBNG s84bDLDCX/Qm6Xb3gtyQBFjW1Y0vyXQSJxtkvyDqK2k9hAV0M+j2moz+SUhwslByT/E8 BZIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:message-id:subject:mime-version; bh=RozSEnKUTxo/HvpbklM4eMr938cWMqeCg6FISlfWrYU=; b=kc2Duq4V4X3KVltn1oLNdupthDctrw6EQb1CRh77+V/ph7FZVYJM5GrQgGwCEMYwZM L/Js/pA8/2OgxMVsnVJ+FOav3mbFwZKI8mHBw2T70nkrLsAUp5HqWH89lnnQ6ilPl7Ju gMKjJIO99PF84Pi8hu3ooRV/ntRmOwFBfzbbzmTDepIZetO/7tt9/5tGS0nufXmwuMZn DBysXrT+1qE9AWrCQya2ts3NzeEsY/FqAQk+RmGcKDgMHfGV9rDy1YCfeVlaDtF8rHPg hg1VNBLrz5uZdcr4DuNiLblUhLuvfd66osEe9YLoe1JCCkgpYIvlWikS2jBojtdBqKA4 kwUQ== X-Gm-Message-State: AMCzsaUU/Ld+mXh/qpgXQBoaPSqd88he7FrsBsBPDISGTOn921JdAcGd yQ07m+7RMGWMIx7a/kB2SncXbI0L X-Google-Smtp-Source: AOwi7QDumVWAL8GnimbCuNXxdDNrp8ZywytPtVve6ktC1eRcY/1atzl/MBXFsEUVU34Yxu9LnvMlUg== X-Received: by 10.80.220.202 with SMTP id v10mr12839674edk.226.1508161075864; Mon, 16 Oct 2017 06:37:55 -0700 (PDT) Original-Received: from [10.0.0.105] (zeusgw.ugent.be. [157.193.55.1]) by smtp.gmail.com with ESMTPSA id y40sm5327716ede.0.2017.10.16.06.37.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Oct 2017 06:37:54 -0700 (PDT) X-Readdle-Message-ID: 880f5f86-3cbd-4b47-9c08-b36e9f2087b1@Spark X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Mon, 16 Oct 2017 09:58:55 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:138520 Archived-At: --59e4b62f_643c9869_173 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello, recently I've switched over to the emacs-26 branch due to some unpatched bugs in the stable 25.3 release available on brew/cask. I currently use the ivy package as a completion front-end for files/buffe= rs/... and have noticed what appears to be a bug with the =60read-file-name-inte= rnal=60 compiled function that it uses for its completing-read functionality. Symbolic links now appear as directories, complete with trailing '/' and directory-style highlighting. Upon opening any of them I am presented with an empty buffer. With auto-revert-mode active, this buffer attempts to continuously revert, without any luck. I have been unable to reproduce this bug on my Arch Linux system on both emacs 25.3.2 and emacs 26.0.90, and it does not present itself on emacs 25.3.2 on macOS High Sierra (10.13) either. In fact, from what I can tell, this issue seems to be entirely restricted to version 26 of GNU Emacs on macOS (I can not speak for any versions older than High Sierra, as this is my first experience with a mac, and I updated before finding out about this issue). All symlinks that I have tested were created with the GNU coreutils version of the =60ln=60 program. My emacs exec-path is also set to follow my shell path, where all GNU coreutils take precedence over the built-in utils that macOS provides. =46ollowing the steps to reproduce the bug does not require this however,= so it should bear no significance. Steps to reproduce in emacs 26, on macOS High Sierra (version 10.13): 1. Setup a symbolic link in the following way: cd =7E mkdir temp touch temp/foo ln -s =7E/temp/foo =7E/temp/bar 2. Open emacs 26 with =60emacs -Q=60 3. Evaluate the following elisp snippet (let ((default-directory =22=7E/temp=22)) =C2=A0 (all-completions =22=22 'read-file-name-internal)) The (incorrect) output should read (=22bar/=22 =22foo=22 =22../=22 =22./=22= ) The correct, expected output is (=22bar=22 =22foo=22 =22../=22 =22./=22) Note: this is my very first bug report, so if I left out any important information that may be of help in fixing this issue, please let me know.= In GNU Emacs 26.0.90 (build 2, x86=5F64-apple-darwin17.0.0, NS appkit-156= 1.00 Version 10.13 (Build 17A405)) of 2017-10-13 built on Detlevs-MBP.kelder.zeus.ugent.be Repository revision: 716b84034d10b8cae5d721173108c4c299f66ed0 Windowing system distributor 'Apple', version 10.3.1561 Recent messages: Type =22q=22 in help window to restore its previous buffer. C-' is undefined (=23(=22.Trash/=22 0 7 (dirp 6)) =23(=22.bash=5Fsessions/=22 0 15 (dirp 1= 4)) =23(=22.config/=22 0 8 (dirp 7)) =23(=22.cpan/=22 0 6 (dirp 5)) =23(=22= .emacs.d/=22 0 9 (dirp 8)) =23(=22.gnupg/=22 0 7 (dirp 6)) =23(=22.local/= =22 0 7 (dirp 6)) =23(=22.m2/=22 0 4 (dirp 3)) =23(=22.offlineimap/=22 0 = 13 (dirp 12)) =23(=22.oracle=5Fjre=5Fusage/=22 0 18 (dirp 17)) =23(=22.ss= h/=22 0 5 (dirp 4)) =23(=22.virtualenvs/=22 0 13 (dirp 12)) ...) Quit Entering debugger... Back to top level (=22/Users/detlev/.zcompdump=22 =22/Users/detlev/.zcompdump.zwc=22 =22/Us= ers/detlev/.zhistory=22 =22/Users/detlev/.zlogin=22 =22/Users/detlev/.zlo= gout=22 =22/Users/detlev/.zprezto=22 =22/Users/detlev/.zpreztorc=22 =22/U= sers/detlev/.zprofile=22 =22/Users/detlev/.zshenv=22 =22/Users/detlev/.zs= hrc=22) Type =22q=22 in help window to restore its previous buffer. =5B2 times=5D= (=22.zlogout/=22 =22.offlineimaprc=22 =22.zlogin/=22 =22Git/=22 =22.vimin= fo=22 =22.bash=5Fhistory=22 =22.gitconfig=22 =22.zcompdump.zwc=22 =22.lmo= dprofile=22 =22.python=5Fhistory=22 =22Downloads/=22 =22.m2/=22 ...) Type =22q=22 in help window to restore its previous buffer, C-M-v to scro= ll help. Quit Configured using: 'configure --with-ns --with-gnutls --with-mailutils --with-modules --with-dbus --with-imagemagick --with-jpeg' Configured features: JPEG RSVG DBUS NOTI=46Y ACL GNUTLS LIBXML2 ZLIB TOOLKIT=5FSCROLL=5FBARS N= S MODULES LCMS2 Important settings: value of =24LC=5FALL: en=5FUS.UT=46-8 value of =24LANG: en=5FBE.UT=46-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: crux-reopen-as-root-mode: t magit-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t recentf-mode: t global-semanticdb-minor-mode: t global-semantic-idle-scheduler-mode: t semantic-mode: t ivy-mode: t savehist-mode: t diff-auto-refine-mode: t rainbow-delimiters-mode: t perspeen-mode: t global-git-gutter-mode: t projectile-mode: t show-paren-mode: t smartparens-mode: t global-undo-tree-mode: t undo-tree-mode: t which-key-mode: t shell-dirtrack-mode: t company-quickhelp-mode: t company-quickhelp-local-mode: t global-company-mode: t company-mode: t global-flycheck-mode: t flycheck-mode: t which-function-mode: t global-aggressive-indent-mode: t aggressive-indent-mode: t indent-guide-global-mode: t indent-guide-mode: t global-display-line-numbers-mode: t display-line-numbers-mode: t global-hl-line-mode: t global-auto-revert-mode: t delete-selection-mode: t override-global-mode: t cl-old-struct-compat-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t global-visual-line-mode: t visual-line-mode: t transient-mark-mode: t Load-path shadows: None found. =46eatures: (eieio-opt help-fns shadow sort mail-extr crux magit-bookmark magit-obsolete magit-blame magit-stash magit-bisect magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-branch magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log magit-diff smerge-mode magit-core magit-autorevert magit-process magit-margin magit-mode magit-git magit-section magit-popup git-commit magit-utils log-edit pcvs-util with-editor async-bytecomp server dired-hacks-utils autoload radix-tree lisp-mnt cl-print debug mm-archive network-stream starttls url-http tls gnutls url-gw nsm url-cache url-auth recentf bookmark pp add-log vc-git semantic/decorate/mode jdee-flycheck semantic/db-ref semantic/db-mode semantic/wisent/java-tags semantic/wisent/javat-wy semantic/wisent semantic/wisent/wisent jdee-plugins jdee jdee-wiz jdee-test jdee-archive memoize jdee-stacktrace jdee-refactor dired-aux jdee-project-file jdee-maven jdee-keys jdee-jdb jdee-java-grammar jdee-which-method jdee-font-lock jdee-issues jdee-help jdee-gen tempo jdee-find jdee-deps jdee-cygwin jdee-custom jdee-compile jdee-class jdee-bytecode jdee-bug jdee-run jdee-jdk-manager jdee-dbs jdee-dbo jdee-widgets tree-widget jdee-db jdee-open-source semantic/senator semantic/decorate pulse jdee-import jdee-complete semantic/idle jdee-parse jdee-backend jdee-bsh jdee-util arc-mode archive-mode jdee-parse-expr beanshell semantic/sb speedbar sb-image dframe jdee-imenu semantic/imenu semantic/sort semantic/db-file data-debug cedet-files semantic/db eieio-base semantic/java semantic/format ezimage semantic/tag-ls semantic/find semantic/doc semantic/ctxt semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local efc avl-tree generator jdee-annotations jdee-abbrev jdee-classpath jdee-files jdee-activator jdee-log executable cus-edit cus-start cus-load cedet browse-url emacsbug sendmail colir smex ido counsel jka-compr esh-util swiper ivy flx ivy-overlay ffap detvdl-util detvdl-theme doom-themes-org doom-one-theme doom-themes doom-themes-common smart-mode-line-dark-theme smart-mode-line rich-minority detvdl-history savehist detvdl-persp notmuch notmuch-message notmuch-hello wid-edit notmuch-tree notmuch-show notmuch-print notmuch-crypto notmuch-mua notmuch-draft notmuch-maildir-fcc notmuch-address notmuch-company notmuch-parser notmuch-wash diff-mode coolj notmuch-query goto-addr icalendar diary-lib diary-loaddefs cal-menu calendar cal-loaddefs notmuch-tag crm notmuch-lib notmuch-compat cl message rmc puny dired dired-loaddefs rfc822 mml mailabbrev gmm-utils mailheader mm-view mml-smime mml-sec epa epg gnus-util rmail rmail-loaddefs mail-utils smime dig mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr rainbow-delimiters elec-pair perspeen perspeen-tab powerline powerline-separators color powerline-themes detvdl-mail detvdl-git git-gutter-fringe git-gutter fringe-helper ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff detvdl-projectile projectile grep compile ibuf-ext ibuffer ibuffer-loaddefs detvdl-ivy helm derived helm-source eieio-compat helm-multi-match helm-lib async detvdl-smartparens paren smartparens-config smartparens-javascript smartparens-text smartparens-python smartparens-html smartparens-clojure smartparens detvdl-common undo-tree diff which-key exec-path-from-shell detvdl-lang detvdl-markdown detvdl-org detvdl-c detvdl-js json-mode json-reformat json-snatcher js sgml-mode dom thingatpt cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs detvdl-web detvdl-python pyenv-mode company-anaconda anaconda-mode pythonic f s python tramp-sh url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap tramp tramp-compat tramp-loaddefs trampver shell pcomplete comint ansi-color parse-time format-spec detvdl-clojure clojure-mode align detvdl-java detvdl-elisp elisp-slime-nav detvdl-lisp detvdl-ruby advice detvdl-shell detvdl-yasnippet detvdl-company company-quickhelp pos-tip company-oddmuse company-keywords company-etags etags xref project ring company-gtags company-dabbrev-code company-dabbrev company-files company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-css company-nxml company-bbdb company pcase detvdl-programming flycheck json map find-func subr-x dash which-func imenu aggressive-indent cl-extra help-mode indent-guide detvdl-ui display-line-numbers hl-line detvdl-editor edmacro kmacro autorevert filenotify delsel use-package diminish bind-key easy-mmode finder-inf rx info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 740465 117053) (symbols 48 58760 33) (miscs 40 496 1326) (strings 32 164015 14452) (string-bytes 1 5172899) (vectors 16 106321) (vector-slots 8 2583896 57898) (floats 8 419 788) (intervals 56 2162 2497) (buffers 992 33)) --59e4b62f_643c9869_173 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hello,

recently I've switched over to the emacs-26 branch due to some unpatched<= br /> bugs in the stable 25.3 release available on brew/cask.

I currently use the ivy package as a completion front-end for files/buffe= rs/...
and have noticed what appears to be a bug with the =60read-file-name-inte= rnal=60
compiled function that it uses for its completing-read functionality.
Symbolic links now appear as directories, complete with trailing '/' and<= br /> directory-style highlighting.
Upon opening any of them I am presented with an empty buffer. With
auto-revert-mode active, this buffer attempts to continuously
revert, without any luck.

I have been unable to reproduce this bug on my Arch Linux system on both<= br /> emacs 25.3.2 and emacs 26.0.90, and it does not present itself on emacs 25.3.2 on macOS High Sierra (10.13) either.
In fact, from what I can tell, this issue seems to be entirely
restricted to version 26 of GNU Emacs on macOS (I can not speak for
= any versions older than High Sierra, as this is my first
experience with a mac, and I updated before finding out about this
issue).

All symlinks that I have tested were created with the GNU coreutils
= version of the =60ln=60 program.

My emacs exec-path is also set to follow my shell path, where all GNU
coreutils take precedence over the built-in utils that macOS provides. =46ollowing the steps to reproduce the bug does not require this however,= so it
should bear no significance.

Steps to reproduce in emacs 26, on macOS High Sierra (version 10.13):

1. Setup a symbolic link in the following way:
cd =7E
mkdir temp
touch temp/foo
ln -s =7E/temp/foo =7E/temp/bar

2. Open emacs 26 with =60emacs -Q=60

3. Evaluate the following elisp snippet
(let ((default-directory =22=7E/temp=22))
&=23160; (all-completions =22=22 'read-file-name-internal))

The (incorrect) output should read (=22bar/=22 =22foo=22 =22../=22 =22= ./=22)
The correct, expected output is (=22bar=22 =22foo=22 =22../=22 =22./=22)<= br />
Note: this is my very first bug report, so if I left out any important information that may be of help in fixing this issue, please let me know.=


In GNU Emacs 26.0.90 (build 2, x86=5F64-apple-darwin17.0.0, NS appkit-156= 1.00 Version 10.13 (Build 17A405))
of 2017-10-13 built on Detlevs-MBP.kelder.zeus.ugent.be
Repository revision: 716b84034d10b8cae5d721173108c4c299f66ed0
Windowing system distributor 'Apple', version 10.3.1561
Recent messages:
Type =22q=22 in help window to restore its previous buffer.
C-' is undefined
(=23(=22.Trash/=22 0 7 (dirp 6)) =23(=22.bash=5Fsessions/=22 0 15 (dirp 1= 4)) =23(=22.config/=22 0 8 (dirp 7)) =23(=22.cpan/=22 0 6 (dirp 5)) =23(=22= .emacs.d/=22 0 9 (dirp 8)) =23(=22.gnupg/=22 0 7 (dirp 6)) =23(=22.local/= =22 0 7 (dirp 6)) =23(=22.m2/=22 0 4 (dirp 3)) =23(=22.offlineimap/=22 0 = 13 (dirp 12)) =23(=22.oracle=5Fjre=5Fusage/=22 0 18 (dirp 17)) =23(=22.ss= h/=22 0 5 (dirp 4)) =23(=22.virtualenvs/=22 0 13 (dirp 12)) ...)
Quit
Entering debugger...
Back to top level
(=22/Users/detlev/.zcompdump=22 =22/Users/detlev/.zcompdump.zwc=22 =22/Us= ers/detlev/.zhistory=22 =22/Users/detlev/.zlogin=22 =22/Users/detlev/.zlo= gout=22 =22/Users/detlev/.zprezto=22 =22/Users/detlev/.zpreztorc=22 =22/U= sers/detlev/.zprofile=22 =22/Users/detlev/.zshenv=22 =22/Users/detlev/.zs= hrc=22)
Type =22q=22 in help window to restore its previous buffer. =5B2 times=5D=
(=22.zlogout/=22 =22.offlineimaprc=22 =22.zlogin/=22 =22Git/=22 =22.vimin= fo=22 =22.bash=5Fhistory=22 =22.gitconfig=22 =22.zcompdump.zwc=22 =22.lmo= dprofile=22 =22.python=5Fhistory=22 =22Downloads/=22 =22.m2/=22 ...)
Type =22q=22 in help window to restore its previous buffer, C-M-v to scro= ll help.
Quit
Configured using:
'configure --with-ns --with-gnutls --with-mailutils --with-modules
--with-dbus --with-imagemagick --with-jpeg'

Configured features:
JPEG RSVG DBUS NOTI=46Y ACL GNUTLS LIBXML2 ZLIB TOOLKIT=5FSCROLL=5FBARS N= S
MODULES LCMS2

Important settings:
value of =24LC=5FALL: en=5FUS.UT=46-8
value of =24LANG: en=5FBE.UT=46-8
locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
crux-reopen-as-root-mode: t
magit-auto-revert-mode: t
global-git-commit-mode: t
async-bytecomp-package-mode: t
recentf-mode: t
global-semanticdb-minor-mode: t
global-semantic-idle-scheduler-mode: t
semantic-mode: t
ivy-mode: t
savehist-mode: t
diff-auto-refine-mode: t
rainbow-delimiters-mode: t
perspeen-mode: t
global-git-gutter-mode: t
projectile-mode: t
show-paren-mode: t
smartparens-mode: t
global-undo-tree-mode: t
undo-tree-mode: t
which-key-mode: t
shell-dirtrack-mode: t
company-quickhelp-mode: t
company-quickhelp-local-mode: t
global-company-mode: t
company-mode: t
global-flycheck-mode: t
flycheck-mode: t
which-function-mode: t
global-aggressive-indent-mode: t
aggressive-indent-mode: t
indent-guide-global-mode: t
indent-guide-mode: t
global-display-line-numbers-mode: t
display-line-numbers-mode: t
global-hl-line-mode: t
global-auto-revert-mode: t
delete-selection-mode: t
override-global-mode: t
cl-old-struct-compat-mode: t
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
size-indication-mode: t
column-number-mode: t
line-number-mode: t
global-visual-line-mode: t
visual-line-mode: t
transient-mark-mode: t

Load-path shadows:
None found.

=46eatures:
(eieio-opt help-fns shadow sort mail-extr crux magit-bookmark
magit-obsolete magit-blame magit-stash magit-bisect magit-remote
magit-commit magit-sequence magit-notes magit-worktree magit-branch
= magit-files magit-refs magit-status magit magit-repos magit-apply
magit-wip magit-log magit-diff smerge-mode magit-core magit-autorevert magit-process magit-margin magit-mode magit-git magit-section
magit-popup git-commit magit-utils log-edit pcvs-util with-editor
async-bytecomp server dired-hacks-utils autoload radix-tree lisp-mnt
cl-print debug mm-archive network-stream starttls url-http tls gnutls
url-gw nsm url-cache url-auth recentf bookmark pp add-log vc-git
semantic/decorate/mode jdee-flycheck semantic/db-ref semantic/db-mode
semantic/wisent/java-tags semantic/wisent/javat-wy semantic/wisent
semantic/wisent/wisent jdee-plugins jdee jdee-wiz jdee-test jdee-archive<= br /> memoize jdee-stacktrace jdee-refactor dired-aux jdee-project-file
jdee-maven jdee-keys jdee-jdb jdee-java-grammar jdee-which-method
jdee-font-lock jdee-issues jdee-help jdee-gen tempo jdee-find jdee-deps jdee-cygwin jdee-custom jdee-compile jdee-class jdee-bytecode jdee-bug jdee-run jdee-jdk-manager jdee-dbs jdee-dbo jdee-widgets tree-widget
jdee-db jdee-open-source semantic/senator semantic/decorate pulse
jdee-import jdee-complete semantic/idle jdee-parse jdee-backend jdee-bsh<= br /> jdee-util arc-mode archive-mode jdee-parse-expr beanshell semantic/sb
speedbar sb-image dframe jdee-imenu semantic/imenu semantic/sort
semantic/db-file data-debug cedet-files semantic/db eieio-base
semantic/java semantic/format ezimage semantic/tag-ls semantic/find
= semantic/doc semantic/ctxt semantic/util-modes semantic/util semantic
semantic/tag semantic/lex semantic/fw mode-local efc avl-tree generator jdee-annotations jdee-abbrev jdee-classpath jdee-files jdee-activator
jdee-log executable cus-edit cus-start cus-load cedet browse-url
emacsbug sendmail colir smex ido counsel jka-compr esh-util swiper ivy flx ivy-overlay ffap detvdl-util detvdl-theme doom-themes-org
doom-one-theme doom-themes doom-themes-common smart-mode-line-dark-theme<= br /> smart-mode-line rich-minority detvdl-history savehist detvdl-persp
notmuch notmuch-message notmuch-hello wid-edit notmuch-tree notmuch-show<= br /> notmuch-print notmuch-crypto notmuch-mua notmuch-draft
notmuch-maildir-fcc notmuch-address notmuch-company notmuch-parser
notmuch-wash diff-mode coolj notmuch-query goto-addr icalendar diary-lib<= br /> diary-loaddefs cal-menu calendar cal-loaddefs notmuch-tag crm
notmuch-lib notmuch-compat cl message rmc puny dired dired-loaddefs
= rfc822 mml mailabbrev gmm-utils mailheader mm-view mml-smime mml-sec epa<= br /> epg gnus-util rmail rmail-loaddefs mail-utils smime dig mm-decode
mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util
ietf-drums mail-prsvr rainbow-delimiters elec-pair perspeen perspeen-tab<= br /> powerline powerline-separators color powerline-themes detvdl-mail
detvdl-git git-gutter-fringe git-gutter fringe-helper ediff-merg
ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff detvdl-projectile projectile grep compile ibuf-ext ibuffer
ibuffer-loaddefs detvdl-ivy helm derived helm-source eieio-compat
helm-multi-match helm-lib async detvdl-smartparens paren
smartparens-config smartparens-javascript smartparens-text
smartparens-python smartparens-html smartparens-clojure smartparens
= detvdl-common undo-tree diff which-key exec-path-from-shell detvdl-lang detvdl-markdown detvdl-org detvdl-c detvdl-js json-mode json-reformat
json-snatcher js sgml-mode dom thingatpt cc-mode cc-fonts cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs detvdl-web<= br /> detvdl-python pyenv-mode company-anaconda anaconda-mode pythonic f s
python tramp-sh url url-proxy url-privacy url-expand url-methods
url-history url-cookie url-domsuf url-util mailcap tramp tramp-compat
tramp-loaddefs trampver shell pcomplete comint ansi-color parse-time
format-spec detvdl-clojure clojure-mode align detvdl-java detvdl-elisp elisp-slime-nav detvdl-lisp detvdl-ruby advice detvdl-shell
detvdl-yasnippet detvdl-company company-quickhelp pos-tip
company-oddmuse company-keywords company-etags etags xref project ring company-gtags company-dabbrev-code company-dabbrev company-files
company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-css company-nxml company-bbdb
company pcase detvdl-programming flycheck json map find-func subr-x dash<= br /> which-func imenu aggressive-indent cl-extra help-mode indent-guide
detvdl-ui display-line-numbers hl-line detvdl-editor edmacro kmacro
= autorevert filenotify delsel use-package diminish bind-key easy-mmode
finder-inf rx info package easymenu epg-config url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv
= cl-loaddefs cl-lib time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize
mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
= vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
= button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable<= br /> backquote dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process emacs)

Memory information:
((conses 16 740465 117053)
(symbols 48 58760 33)
(miscs 40 496 1326)
(strings 32 164015 14452)
(string-bytes 1 5172899)
(vectors 16 106321)
(vector-slots 8 2583896 57898)
(floats 8 419 788)
(intervals 56 2162 2497)
(buffers 992 33))
--59e4b62f_643c9869_173--