Date: Mon, 16 Jul 2012 00:12:47 -0500 From: Zhihao Yuan <lichray@gmail.com> 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: <CAGsORuAKFZSQzLAF%2BtcczvGXfWapcrpAxsB=YPkuJGCwGAmuxg@mail.gmail.com> 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 12:03 AM, Thomas Mueller <mueller23@insightbb.com> 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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGsORuAKFZSQzLAF%2BtcczvGXfWapcrpAxsB=YPkuJGCwGAmuxg>