Date: Wed, 27 Sep 1995 19:20:02 -0700 From: Keith Bostic <bostic@BSDI.COM> To: freebsd-bugs Subject: Re: bin/743: vi cannot edit a file where the name starts with + Message-ID: <199509280220.TAA23341@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/743; it has been noted by GNATS. 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. --keith
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509280220.TAA23341>