less and vi fail on file whose name begins with +

poyopoyo at puripuri.plala.or.jp poyopoyo at puripuri.plala.or.jp
Mon Jul 16 05:25:06 UTC 2012


At Mon, 16 Jul 2012 01:03:30 -0400,
Thomas Mueller wrote:
> I tried vi instead of less, not really wanting to edit the file,
> and vi tried to open a temporary file on /tmp with a strange name.
> 
> Has anybody noticed this bug?  It affects i386 and amd64 at least.

You might have received enough replies already but reading manual page
is always good thing to understand unix command behaviour.

$ man vi | less +/\\+cmd
$ man less | less +/\\+cmd

No bugs involved here; they both are working as designed.

-- 
kuro


More information about the freebsd-stable mailing list