acme: add -m option and avoid looking in the mirror

This commit is contained in:
Russ Cox 2008-04-17 16:04:19 -04:00
parent e63025d094
commit cd5a73785d
6 changed files with 25 additions and 2 deletions

View file

@ -620,7 +620,7 @@ expandfile(Text *t, uint q0, uint q1, Expand *e)
if(w != nil)
goto Isfile;
/* if it's the name of a file, it's a file */
if(access(e->bname, 0) < 0){
if(ismtpt(e->bname) || access(e->bname, 0) < 0){
free(e->bname);
e->bname = nil;
goto Isntfile;