🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.4bsd
Article #1105

vi with an 8-bit shell

#1105
From: Simon Brown
Date: Wed, 27 Jul 1988 14:20
16 lines
1064 bytes
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@uk.ac.ed.lfcs
Technical Details
Message-ID: <571@etive.ed.ac.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!mcvax!ukc!etive!lfcs!simon

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!mcvax!ukc!etive!lfcs!simon
From: simon@lfcs.ed.ac.uk (Simon Brown)
Newsgroups: comp.bugs.4bsd
Subject: vi with an 8-bit shell
Message-ID: <571@etive.ed.ac.uk>
Date: 27 Jul 88 14:20:13 GMT
Sender: news@etive.ed.ac.uk
Reply-To: simon%lfcs.ed.ac.uk@nss.cs.ucl.ac.uk (Simon Brown)
Organization: LFCS, University of Edinburgh
Lines: 16