vi with an 8-bit shell
Simon Brown
simon at lfcs.ed.ac.uk
Thu Jul 28 00:20:13 AEST 1988
If you use '%' or '#'in a shell-escape, such as
:!diff % %.orig
then vi will set the high-bit on the substituted filenames. If you use a
shell which passes 8-bit data correctly (such as ksh-i), then you get:
diff: mumble.c: Invalid argument
This doesn't happen for sh or csh, of course, since they strip 8-bit data.
See the unix0() function in ex_unix.c.
Simon.
| Simon Brown | UUCP: mcvax!ukc!lfcs!simon
| Laboratory for Foundations of Computer Science | ARPA: simon%lfcs.ed
| Department of Computer Science | @nss.cs.ucl.uk
| University of Edinburgh, Scotland, UK. | JANET: simon at uk.ac.ed.lfcs
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list