Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jul 2012 01:09:58 -0400
From:      Glen Barber <gjb@FreeBSD.org>
To:        Thomas Mueller <mueller23@insightbb.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: less and vi fail on file whose name begins with +
Message-ID:  <20120716050957.GB1436@glenbarber.us>
In-Reply-To: <DD.37.21507.2A0A3005@smtp02.insight.synacor.com>
References:  <DD.37.21507.2A0A3005@smtp02.insight.synacor.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 16, 2012 at 01:03:30AM -0400, Thomas Mueller wrote:
> I notice in my latest build of FreeBSD 9.0-STABLE (#11), a problem with less and vi with files whose name begins with +.
> 
> These files occur in /var/db/pkg/(pkg-name)/
> 
> For instance, if I cd /var/db/pkg/png-1.4.8
> and type 
> less +DESC 
> I get
> 
> Missing filename ("less --help" for help)
> 
> but if I type the filename with full path, or even 
> less ./+DESC 
> it works OK
> 

less(1) is expecting '+' to be followed by additional arguments.

If you use 'less -- +DESC', for example, it should work fine.  Same with
vi(1).

Regards,

Glen




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120716050957.GB1436>