From owner-freebsd-stable@FreeBSD.ORG Mon Jul 16 05:10:00 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 775EA106564A for ; Mon, 16 Jul 2012 05:10:00 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from glenbarber.us (onyx.glenbarber.us [199.48.134.227]) by mx1.freebsd.org (Postfix) with SMTP id 24BC38FC08 for ; Mon, 16 Jul 2012 05:10:00 +0000 (UTC) Received: (qmail 7074 invoked by uid 0); 16 Jul 2012 01:09:59 -0400 Received: from unknown (HELO glenbarber.us) (76.124.49.145) by 0 with SMTP; 16 Jul 2012 01:09:59 -0400 Date: Mon, 16 Jul 2012 01:09:58 -0400 From: Glen Barber To: Thomas Mueller Message-ID: <20120716050957.GB1436@glenbarber.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 10.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-stable@freebsd.org Subject: Re: less and vi fail on file whose name begins with + X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jul 2012 05:10:00 -0000 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