Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Sep 1995 05:30:01 -0700
From:      J Wunsch <j@ida.interface-business.de>
To:        freebsd-bugs
Subject:   Re: bin/743: vi cannot edit a file where the name starts with +
Message-ID:  <199509271230.FAA29259@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: J Wunsch <j@ida.interface-business.de>
To: mpp@mpp.minn.net (Mike Pritchard)
Cc: joerg_wunsch@interface-business.de, FreeBSD-gnats-submit@freebsd.org,
        bostic@cs.berkeley.edu
Subject: Re: bin/743: vi cannot edit a file where the name starts with +
Date: Wed, 27 Sep 1995 12:50:08 +0100 (MET)

 As Mike Pritchard wrote:
 > 
 > > vi +foo
 > > ~
 > > ...
 > > ~
 > > /tmp/vi.014780: new file: line 1;  The foo command is unknown.
 
 > As for the "vi +foo" problem, note the "+cmd" syntax above.
 
 Of course, this has been quite clear to me.
 
 >  I don't 
 > think that I would consider this a real "bug".  It seems to fall into 
 > the same category as trying to use rm to remove a file that starts with 
 > a dash (-) (and please, lets not get into a long discussion on that...).
 
 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.
 
 -- 
 cheers,
 
 J"org Wunsch



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