tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tramp-cache and destructive operations


From: Jürgen Hötzel
Subject: tramp-cache and destructive operations
Date: Wed, 12 Aug 2015 17:46:37 +0200

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]