[comp.mail.mush] File completion listings

schaefer@ogicse.ogc.edu (Barton E. Schaefer) (12/16/89)

In article <8912152226.AA31825@xenna.Xylogics.COM> loverso@Xylogics.COM (John Robert LoVerso) writes:
} 
} > + expands only to "$folder".  You have to type ~/^D to list files in your
} > home directory; that's the analogy on which listing with +/^D is based.
} 
} Ah, but ~^D will list all the valid names that can come after ~ - so why
} shouldn't +^D list all the valid folder names? 

Unfortunately (depending on your point of view), ~^D will NOT list all
the valid names that come after ~.  (Yes, I know it will in csh, but mush
doesn't yet go to the somewhat bizarre length of searching /etc/passwd
for all valid user names, which is what csh does.)  It lists your home
directory name, just like +^D lists your folder directory name.  That's
another reason +^D was caused to behave like it presently does.

(Don't worry, I haven't ignored the other comments on ^D listings, I
just haven't formulated either a solution or a response yet.)

In article <1989Dec15.231640.9426@vicom.com> lmb@vicom.com (Larry Blair) writes:
} In article <6200@ogicse.ogc.edu> schaefer@ogicse.UUCP (Barton E. Schaefer) writes:
} =In article <8912151519.AA05853@xenna.Xylogics.COM> loverso@Xylogics.COM (John Robert LoVerso) writes:
} =}    to be more specific, typing +^D just says "/u6/loverso/Mail/" -
} =
} =This in intentional.  In effect, "+foo" expands to "$folder/foo" but "+"
} =expands only to "$folder".
} 
} the "+" implies the folders, not just the directory they are stored in.

That statement I disagree with.  "+" means the folder directory and always
has.  "+something" means the folder "something", which means the file
"something" in directory "$folder", but "+" by itself does not refer to
all the folders.

Whether the fact that "+" is a directory means that all the files in it
ought to be listed by ^D is another matter.  If I can figure out how to
arrange that without breaking anything else, I will.

} you are thinking about how you implemented
} "+" rather than what it means.

Not true.  (Also, I didn't implement "+"; that's been there longer than
I've been messing with this.  + and ~ are expanded virtually everywhere,
but other globbing characters are expanded only in completions.)

} Shouldn't "~w" mean the home directory of user "w"?

Yes, I misspoke.  However, as mentioned above, ~w^D or ~w<ESC> does not
expand to all/any users whose name happens to start with "w".
-- 
Bart Schaefer     "Miserable miscreant!  Question MY integrity, will you?"
               "I have to see some *evidence* of it before I can question it."
                                                            -- Calvin & Hobbes
schaefer@cse.ogi.edu (used to be cse.ogc.edu)