WSL
WSL copied to clipboard
ls does not follow symlinks if symlink argument(s) are terminated by slash
Ubuntu 14.04 LTS Linux Kernel:
[root@vz1 ~] # ls -laF /var/lock
lrwxrwxrwx 1 root root 9 Jun 28 2015 /var/lock -> /run/lock/
[root@vz1 ~] # ls -laF /var/lock/
total 0
drwxrwxrwt 2 root root 40 Feb 23 02:58 ./
drwxr-xr-x 19 root root 620 Jun 18 16:23 ../
[root@vz1 ~] #
Ubuntu 14.04 LTS with WSL 14367:
[root@xeon1 ~] # ls -laF /var/lock
lrwxrwxrwx 1 root root 9 Mar 23 21:41 /var/lock -> /run/lock/
[root@xeon1 ~] # ls -laF /var/lock/
lrwxrwxrwx 1 root root 9 Mar 23 21:41 /var/lock/ -> /run/lock/
[root@xeon1 ~] #
Thank you for reporting. There was an issue with trailing slash handling that has been fixed internally and will be an Insider build soon. Keep an eye out for our release notes.
Fixed in 14371