From: Christian Neukirchen <chneukirchen@gmail.com>
To: zsh-workers@zsh.org
Subject: Various notes on KSH_GLOB
Date: Thu, 30 May 2013 16:30:45 +0200 [thread overview]
Message-ID: <87obbsczfu.fsf@gmail.com> (raw)
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
next reply other threads:[~2013-05-30 14:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-30 14:30 Christian Neukirchen [this message]
2013-05-30 15:10 ` Peter Stephenson
2013-05-30 15:53 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87obbsczfu.fsf@gmail.com \
--to=chneukirchen@gmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).