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

Re: FNG optional presecence of a character



In the last episode (Feb 22), Clint Adams said:
> > _fred.php
> > fred.php
> > 
> > I know I can do a clumsy
> > 
> > ls [_f][fr]*.php
> 
> ls {_,}fred.php

Not strictly the same, since that's brace expansion, not globbing. 
This is the equivalent glob pattern (match _ or the empty string):

ls (_|)fred.php

-- 
	Dan Nelson
	dnelson@xxxxxxxxxxxxxxx



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