From owner-freebsd-stable@FreeBSD.ORG Mon Jul 16 05:13:33 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 14D14106566B for ; Mon, 16 Jul 2012 05:13:33 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 974A38FC08 for ; Mon, 16 Jul 2012 05:13:32 +0000 (UTC) Received: by eekb47 with SMTP id b47so34913eek.13 for ; Sun, 15 Jul 2012 22:13:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=rdDxPYfEskhy9uiwoM+FaHrbELpzW/OHvcR7QRu7V+o=; b=N4JoMauxyXt3t4jeO9HD0ShFOZDZ68U9pRH8OX9JAXFpBCPeLTuK8LSHbRZBcrD/yb Cot0XBhuFwMhjjjA+m5kG1e4MkSClUcaPfA+tGZHEuoByrWtXWr7ZwIdSXscwAyiXjRe +bEPPdEmx1OumYND2aB1tGIA+9gUuHicyYXcWNk+GNABNb1Ig3s5ziHQwm8WzeLytvhQ ItLw4pepoyC111CrArlRdfB5o1FjmIpLHkZMj0zqqN6zAjN7fcL30QBpfd+2xc/Am68m DCGjNZvSETNqWAOErOSMVkVXV4rNKksjHQCfgdyw8cANIijgHM1oIZWBr4Ee9OMeWx51 kK0g== Received: by 10.14.3.195 with SMTP id 43mr7509195eeh.24.1342415611591; Sun, 15 Jul 2012 22:13:31 -0700 (PDT) Received: from dft-labs.eu (n1x0n-1-pt.tunnel.tserv5.lon1.ipv6.he.net. [2001:470:1f08:1f7::2]) by mx.google.com with ESMTPS id t6sm15421547eeo.17.2012.07.15.22.13.30 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 15 Jul 2012 22:13:30 -0700 (PDT) Date: Mon, 16 Jul 2012 07:13:26 +0200 From: Mateusz Guzik To: Thomas Mueller Message-ID: <20120716051326.GA2654@dft-labs.eu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) 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:13:33 -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 > + has special meaning in ls: +cmd Causes the specified cmd to be executed each time a new file is examined. For example, +G causes less to initially display each file starting at the end rather than the beginning. > I also tried going to /tmp and > echo abcdefg > +junk1.txt > and the same bug with less showed up (no problem with echo). > > 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. > That's expected. -- Mateusz Guzik