Hi,
for example 'eshell-ls-sort-entries' uses `sort' and thus the tramp cache is modified by side effects.
This results in invalid eshell-output (at least when using tramp-adb):
/adb:root@:/mnt $ ls
asec media_rw obb sdcard secure shell
/adb:root@:/mnt $ ls
shell
As a workaround I use `copy-sequence' in `tramp-adb-handle-directory-files-and-attributes'.
But this is not a generic solution. Should tramp-cache be modified to always return a copy of lists?
Thanks,
Jürgen