Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!elsie!ado From: ado@elsie.UUCP (Arthur David Olson) Newsgroups: net.bugs.4bsd Subject: 4.[123]BSD "refer -p" fails if private filename contains '#' (with fix) Message-ID: <6240@elsie.UUCP> Date: Thu, 11-Sep-86 17:58:46 EDT Article-I.D.: elsie.6240 Posted: Thu Sep 11 17:58:46 1986 Date-Received: Thu, 11-Sep-86 21:50:32 EDT Organization: NIH-LEC, Bethesda, MD Lines: 34 Keywords: refer Index: bin/refer Fix Description: Commands such as refer -p #tempfile fail. Repeat-By: Script started on Thu Sep 11 17:53:07 1986 Warning: no access to tty; thus no job control in this shell... % tee A #A < /dev/null % ( echo ".[" ; echo "oops" ; echo ".]" ) > B % refer -p #A B Error: Can't read fgrep index #A.ig % refer -p A B No such paper oops % script done on Thu Sep 11 17:53:47 1986 ...where, of course, both runs of refer should produce the same output. Fix: Change the line near the start of "hunt8.c" that reads: sprintf(tmp, "/usr/lib/refer/mkey %s >%s.ig", s,s); to read (void) sprintf(tmp, "/usr/lib/refer/mkey '%s' >'%s.ig'", s,s); -- Bug/s is a Volkswagen/Warner Brothers trademark. Hunt is a Hunt/Wesson trademark. -- UUCP: ..decvax!seismo!elsie!ado ARPA: elsie!ado@seismo.ARPA DEC, VAX, Elsie & Ado are Digital, Borden & Ampex trademarks.