From: utzoo!decvax!harpo!seismo!hao!hplabs!sri-unix!chris.umcp-cs@UDel-Relay Newsgroups: net.unix-wizards Title: Re: small bug in "vi" Article-I.D.: sri-arpa.938 Posted: Sat Apr 2 20:00:34 1983 Received: Tue Apr 19 01:21:02 1983 From: Chris Torek From: Charles F. Von Rospach Another problem with vi is this: :e foo* returns 'Too many filenames' even when there is only one. It looks as though vi sees the * as a meta character and returns an error without checking the expansion... Actually, it opens a pipe to your shell and gives it the command ``echo foo*''. The shell echos ``foobar'' (or whatever) AND a newline. Vi gets confused by the newline, I think. Look in ex_io.c for the function glob(), and its caller. I'd try to fix it but I find that the shell takes too long to start up anyway, and I'm better off just typing the whole name.