Date: Wed, 24 May 1995 02:40:03 -0700 From: Philippe CHARNIER <charnier@lirmm.fr> To: freebsd-bugs Subject: bin/441: more does not call vi with +linenum when EDITOR=vi Message-ID: <199505240940.CAA07412@freefall.cdrom.com> In-Reply-To: Your message of Wed, 24 May 1995 11:23:27 %2B0200 <199505240923.LAA07097@pcdif01.lirmm.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
>Number: 441 >Category: bin >Synopsis: more does not call vi with +linenum when EDITOR=vi >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs (FreeBSD bugs mailing list) >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed May 24 02:40:01 1995 >Originator: Philippe CHARNIER >Organization: Philippe CHARNIER >Release: FreeBSD 2.0.950412-SNAP i386 >Environment: >Description: The `v' command (more) does not use vi +linenum file request when EDITOR is already set to vi. >How-To-Repeat: >Fix: Index: command.c =================================================================== RCS file: /home2h/FreeBSD.cvsroot/src/usr.bin/more/command.c,v retrieving revision 1.3 diff -u -r1.3 command.c --- 1.3 1994/10/09 15:40:03 +++ command.c 1995/05/23 19:26:05 @@ -600,7 +600,8 @@ if (editor == NULL) { editor = getenv("EDITOR"); /* pass the line number to vi */ - if (editor == NULL || *editor == '\0') { + if (editor == NULL || *editor == '\0' || + !strcmp(editor, _PATH_VI) || !strcmp(editor,"vi")) { editor = _PATH_VI; dolinenumber = 1; } >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199505240940.CAA07412>