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

Re: [[ -f file* ]]



On Mon, 18 May 2009, Matt Wozniski wrote:

Well, off the top of my head, I can think of

[ -n "$(print -- test*(N))" ]

but even that seems inelegant; I'm sure someone can chime in with something better.
=================

it's less inelegant than my original method ;)

and it works fine with '[[' conditional expressions... which, IIUC, is the "new and improved" version of test.


--
        ...atom

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

	"In every respect, vegans appear to enjoy equal
	 or better health in comparison to both vegetarians
	 and non-vegetarians."
		-- T. Colin Campbell,
		PhD Professor of Nutrition, Cornell University



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