From owner-freebsd-stable@FreeBSD.ORG Mon Jul 16 05:12:48 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 EB9171065670 for ; Mon, 16 Jul 2012 05:12:47 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id B1EF88FC23 for ; Mon, 16 Jul 2012 05:12:47 +0000 (UTC) Received: by mail-ob0-f182.google.com with SMTP id un3so11149084obb.13 for ; Sun, 15 Jul 2012 22:12:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6WNXGtQ0w0I6h0J2p98CntwLf7UzZpLWvpR+Hil03aQ=; b=e9Eae3u2CBqxYKfSvVOIYs7yN8qdqivpjtfEqi6mdJynU/Pn2LOHluLkmoh6pDHW/D ugdIJlooTFJvWWzJJNVQWNYdsNMAfq5blbsiK/4hJurNwDcv9NGICQeCdjggTMksCJLc V09oOpQBT1Wz45lokf1lI6ph7zXpAPHAHvaCUSN/WGqpm3ORY/jPI7qTmpfqvGg3SrBg LvoNY7gZ1AqnWdx2QinjzvdYwEwAVcZdmP28+FOrlsPn6h0Gi6TR0ASLB9IaRgNwDIkS cGbt0Nk5XgQ6iywy/QvdjWZQF496CCm76I8LxEtaBj0P6dDUr3iENE8zrMFAMY3+zqd9 Njiw== MIME-Version: 1.0 Received: by 10.50.184.129 with SMTP id eu1mr4403401igc.18.1342415567450; Sun, 15 Jul 2012 22:12:47 -0700 (PDT) Received: by 10.231.72.133 with HTTP; Sun, 15 Jul 2012 22:12:47 -0700 (PDT) In-Reply-To: References: Date: Mon, 16 Jul 2012 00:12:47 -0500 Message-ID: From: Zhihao Yuan To: Thomas Mueller Content-Type: text/plain; charset=UTF-8 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:12:48 -0000 On Mon, Jul 16, 2012 at 12:03 AM, 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 > > 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. > > Has anybody noticed this bug? It affects i386 and amd64 at least. It's not a bug... Unix shell regards arguments as same as options, so the command with support + leading options has such a problem. > > I have no access to test on other architectures. > > If this bug is found, we no doubt want it to be squashed before 9.1-RELEASE. > > Tom > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" -- Zhihao Yuan, nickname lichray The best way to predict the future is to invent it. ___________________________________________________ 4BSD -- http://4bsd.biz/