Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/17/84; site elsie.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!seismo!umcp-cs!cvl!elsie!ado From: ado@elsie.UUCP (Arthur David Olson) Newsgroups: net.bugs.4bsd Subject: 4.?bsd vi bug in doing ":args" command (with fix) Message-ID: <4101@elsie.UUCP> Date: Fri, 14-Dec-84 14:28:30 EST Article-I.D.: elsie.4101 Posted: Fri Dec 14 14:28:30 1984 Date-Received: Sun, 16-Dec-84 05:23:15 EST Organization: NIH-LEC, Bethesda, MD Lines: 41 Index: /usr/src/cmd/ex/ex_cmdsub.c (4.1bsd) /usr/src/ucb/ex/ex_cmdsub.c (4.2bsd) Description: Bogus characters sometimes replace blanks in the output of an ":args" command when there are a large number of arguments. Repeat by: On an eighty-column terminal, use the commands vi `repeat 19 echo abcdefg` 12345 67890 :args and note the output: [abcdefg] abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcde fg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg abcdefg 12345 f67890 where the 'f' at the beginning of the last line is bogus. Fix: As is nearly always the case, the trade secret status of the code involved precludes a clearer posting. ed ex_cmdsub.c /^pargs/;/putchar/c #ifdef OLDVERSION putchar(' '); #else putchar(' ' | QUOTE); #endif . w q -- Ex is an Elizabeth Taylor trademark. -- ..decvax!seismo!elsie!ado (301) 496-5688 DEC, VAX and Elsie are Digital Equipment and Borden trademarks