Weird, ls isn't accepting regex properly
Can't escape it either
Something is broken with bash globbing.
works with other file types
ls *.txt
ls *.jpg
just ls *.pdf doesn't work? How does that make any sense? (And yes there are pdfs in the directory)
Checking, it works in other directories -- why would it not work in my Downloads directory but everywhre else?
Workaround:
or
EDIT: Figured it out. There's one pdf in there with a filename starting with a "-" so ls is interpreting that as an option
Totally my fault for not seeing it.
see here: https://superuser.com/questions/1300...invalid-option
Code:
ls *.pdf ls: invalid option -- '9'
Code:
ls \*.pdf ls: cannot access '*.pdf': No such file or directory
works with other file types
ls *.txt
ls *.jpg
just ls *.pdf doesn't work? How does that make any sense? (And yes there are pdfs in the directory)
Checking, it works in other directories -- why would it not work in my Downloads directory but everywhre else?
Workaround:
Code:
ls ./*.pdf
Code:
ls -- *.pdf
EDIT: Figured it out. There's one pdf in there with a filename starting with a "-" so ls is interpreting that as an option
Totally my fault for not seeing it.
see here: https://superuser.com/questions/1300...invalid-option