exa does not list the contents of symbolic links to directories

Created on 9 Jul 2017  Â·  1Comment  Â·  Source: ogham/exa

exa --version: exa 0.7.0

Trying to list symbolic links to directories doesn't work:
exa [symbolic link to a directory] won't show the contents of the directory, only the name of the link, the same way it would do for a file for example.

My Downloads directory is a symbolic link.
I observed that exa D* lists less files than ls D* and that's how I ended up discovering that it does not list the contents of symbolic links to directories...

errors › invalid output

Most helpful comment

(Accidentally hit the Milestone button and there's no Undo!)

exa currently has the behaviour where if you exa ~/Downloads it'll list the link, but if you exa ~/Downloads/, with the trailing slash, it'll list the link's target's contents. However, I can see why you'd want this to be standard behaviour — it's not exactly discoverable!

GNU ls has the --dereference-command-line-symlink-to-dir option, which in addition to being the longest one I've ever seen, means that it does this by default. I'll look into adding something similar for exa.

>All comments

(Accidentally hit the Milestone button and there's no Undo!)

exa currently has the behaviour where if you exa ~/Downloads it'll list the link, but if you exa ~/Downloads/, with the trailing slash, it'll list the link's target's contents. However, I can see why you'd want this to be standard behaviour — it's not exactly discoverable!

GNU ls has the --dereference-command-line-symlink-to-dir option, which in addition to being the longest one I've ever seen, means that it does this by default. I'll look into adding something similar for exa.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CosmicToast picture CosmicToast  Â·  4Comments

s-hamann picture s-hamann  Â·  5Comments

huxi picture huxi  Â·  3Comments

photex picture photex  Â·  4Comments

grigorii-horos picture grigorii-horos  Â·  4Comments