Posted Apr 1, 2011 17:28 UTC (Fri) by nix (subscriber, #2304)
In reply to: /tmp and /var/tmp by cortana
Parent article: Introducing /run
Oo, thanks, hadn't noticed that. It doesn't record the pathname anywhere, though, so collisions are quite likely. (Emacs and XEmacs encode the pathname in the autosave filename.)
Posted Apr 1, 2011 19:13 UTC (Fri) by dtlin (✭ supporter ✭, #36537)
[Link]
:h dir
- For Unix and Win32, if a directory ends in two path separators "//"
or "\\", the swap file name will be built from the complete path to
the file with all path separators substituted to percent '%' signs.
This will ensure file name uniqueness in the preserve directory.