# upstream commit FILE5_28-32-geca5e6f et.al. tags 803219 confirmed upstream pending thanks
Paul Wise wrote... > file doesn't support detecting swp files from nano but it does support > detecting swp files from vim. swp files are the temporary files that > editors write out while a user is editing a file. It appears other > editors than vim and nano support these files so the support should be > generic instead of specific to vim. Agreed although I'm not aware of a third editor that uses the same technique. Especially ... > https://www.quora.com/What-is-a-Kate-swap-file?share=1 ... the Kate editor swap file has a completely different format. Upstream has accepted my patch for both, so: > pabs@chianamo ~ $ file .bar.swp > .bar.swp: Vim swap file, version 7.4 > pabs@chianamo ~ $ file .foo.swp > .foo.swp: data debian-bugs/803219/kate.swap: Kate swap file debian-bugs/803219/nano.swp: Nano swap file, pid 20296, user pabs, host chianamo, file foo debian-bugs/803219/vim.swp: Vim swap file, version 7.4, pid 20671, user pabs, host chianamo, file ~pabs/bar This will be in the next file relase and also in stretch. Aside, the pid information in nano might be wrong on systems where the pid space extends 16 bit: #831636 Christoph
signature.asc
Description: Digital signature