ado@elsie.UUCP (Arthur David Olson) (12/14/84)
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