I'm curious why command ls -pd *[!/]
or ls -pd *[!\/]
doesn't match all files which don't end with /
.
My use case is that I want to list only files inside the current working directory. I know that it's better to use find
instead of ls
but I want to understand in general is it possible to use /
in square brackets in wildcards.