[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: es bug



Tom (tromey@busco.lanl.gov) wrote:
|I've noticed that "*/" expands to all file names with "/" appended,
|instead of just the names of directories.  I think this is a bug --
|all the other glob code I've used does the right thing (expands to
|just directories).

I don't think this is a bug.  The suffixes that ls(1) adds
when -F is turned on -- for example "/" for a directory --
are not part of the file names, they're just shorthand to
help one read a directory listing.  Since there is no file
"*/" in the directory, es(1) doesn't expand the "*".  Same
thing happens if you type "echo h*t" and there is no file
matching "h*t" -- you get "h*t" echoed back.

David McNab
Parallel Systems Support
CSC at NAS, NASA/Ames