Skip to content

Instantly share code, notes, and snippets.

@artagnon
Last active December 20, 2015 08:09
Show Gist options
  • Save artagnon/6098345 to your computer and use it in GitHub Desktop.
Save artagnon/6098345 to your computer and use it in GitHub Desktop.
Emacs bug in expand-file-name
#!/bin/sh
cd /tmp
rm -rf z b
mkdir z z/a z/b
ln -s z/b
cd b
emacs -Q --batch --eval='(error (expand-file-name "../a"))' # /tmp/a
realpath "../a" # /tmp/z/a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment