zsh-workers
 help / color / mirror / code / Atom feed
* Various notes on KSH_GLOB
@ 2013-05-30 14:30 Christian Neukirchen
  2013-05-30 15:10 ` Peter Stephenson
  2013-05-30 15:53 ` Peter Stephenson
  0 siblings, 2 replies; 3+ messages in thread
From: Christian Neukirchen @ 2013-05-30 14:30 UTC (permalink / raw)
  To: zsh-workers

Hi,

I tried using KSH_GLOB instead of EXTENDED_GLOB recently (because I
really dislike the re-interpretation of ^. What's the benefit over
typing *~?)

However, I stumbled on some problems:

% zsh -f 
juno% zsh --version
zsh 5.0.2 (x86_64-unknown-linux-gnu)
juno% mkdir -p v/v/v/v/v
juno% setopt kshglob
juno% echo *(v|v)
v
juno% echo *(v)
zsh: unknown file attribute
juno% echo *(v|v/)
zsh: bad pattern: *(v|v/)
juno% setopt extendedglob
juno% echo (v/)# 
v/ v/v/ v/v/v/ v/v/v/v/ v/v/v/v/v/

I realize that both mksh and ksh93 neither support directory recursion
with *() (but this would be nice to have, IMO, at last with the explicit
/), which probably only makes this a documentation bug:

>>     *(...) Match any number of occurrences.  (Like `(...)#'.)

Thoughts?

(Perhaps I just need a widget to type \^ when I type ^ after whitespace...)
-- 
Christian Neukirchen  <chneukirchen@gmail.com>  http://chneukirchen.org


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-05-30 16:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-30 14:30 Various notes on KSH_GLOB Christian Neukirchen
2013-05-30 15:10 ` Peter Stephenson
2013-05-30 15:53 ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).