How do I list subdirectories?

John Wiersba
Wed Aug 25 10:04:00 GMT 1999


> I am wondering why using a backslash anyware in a shell expression
> escapes all of the asterisks, right now..., but that appears to be
> something about bash, not Cygwin.

It doesn't.  Go to any dir with subdirs and try

echo */
echo *\/
echo *\a*/   (assuming some subdir has an "a" in it)
echo *z*/    (assuming no subdir has a "z" in it)

If you have shopt -u nullglob (the default) then a failed pattern is left as

Want to unsubscribe from this list?
Send a message to

More information about the Cygwin mailing list