Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Sep 1995 11:54:53 +0100 (MET)
From:      Luigi Rizzo <luigi@labinfo.iet.unipi.it>
To:        bostic@BSDI.COM
Cc:        freebsd-bugs@freefall.freebsd.org
Subject:   Re: bin/743: vi cannot edit a file where the name starts with +
Message-ID:  <199509281054.LAA17757@labinfo.iet.unipi.it>
In-Reply-To: <199509280220.TAA23341@freefall.freebsd.org> from "Keith Bostic" at Sep 27, 95 07:19:43 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> From: Keith Bostic <bostic@BSDI.COM>
> To: j@ida.interface-business.de
> Cc: FreeBSD-gnats-submit@freebsd.org, mpp@mpp.minn.net
> Subject: Re: bin/743: vi cannot edit a file where the name starts with +
> Date: Wed, 27 Sep 1995 20:18:07 -0600
> 
>  > But for removing a file starting with a dash, there's a well-known
>  > interface to work around it (--).  I'd rather suggest for vi to also
>  > accept a ``--'' to end scanning the command line for options.
>  
>  I agree.  Since nvi uses getopt(3), "--" does, in general, work.
>  exactly as it does in rm.
>  
>  Unfortunately, +cmd arguments are translated into -c cmd before
>  getopt is called, so the result in the case of a leading + sign
>  in an argument is not what the user wanted.
>  
>  I'll fix this in the next version of nvi.

doesn't  something like "./+filename_starting_with_+" work ?

	Luigi
====================================================================
Luigi Rizzo                     Dip. di Ingegneria dell'Informazione
email: luigi@iet.unipi.it       Universita' di Pisa
tel: +39-50-568533              via Diotisalvi 2, 56126 PISA (Italy)
fax: +39-50-568522              http://www.iet.unipi.it/~luigi/
====================================================================



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