The Wanderer (HE12025-10-30): > ...huh. I could have sworn I'd seen this in practice myself, but you're > right, on testing this does in fact work with mid-filename dashes.
I suspect you might be confusing with file names contained in shell variables: “ls $PDF_FILE” would fail, “ls "$PDF_FILE"” would not choke on embedded special characters. Zsh is superior in this: - If there are no PDF files here, bash globs *.pdf into the string *.pdf itself, zsh causes an error that prevents the command from running or, optionally, globs an empty list. - By default, Zsh disabled the re-expansion of some special characters but not all when expanding $variable. Regards, -- Nicolas George

