Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: unexpected wildcard issue



On Wed, 7 Mar 2007, Dan Nelson wrote:

Doesn't matter. Even if quoted, ls would still see as its first argument something starting with a dash, which it will interpret as an option. Use "ls -- *xyz" or "ls ./*xyz" to ensure that none of the expanded filenames get mistaken for options.
==================

ok... so, should the shell insert an implied "--" before expanding wildcards or globs? is there an option for that? should there be?

thanks...


--
        ...atom

 ________________________
 http://atom.smasher.org/
 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
 -------------------------------------------------

	"When one tries to rise above Nature one is
	 liable to fall below it."
		-- Sherlock Holmes (Arthur Conan Doyle)




Messages sorted by: Reverse Date, Date, Thread, Author