Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: unexpected wildcard issue
- X-seq: zsh-users 11243
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Atom Smasher <atom@xxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Subject: Re: unexpected wildcard issue
- Date: Thu, 08 Mar 2007 09:47:34 -0800
- In-reply-to: <20070308051242.81255.qmail@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20070308045130.66826.qmail@xxxxxxxxxxx> <20070308045433.GQ86959@xxxxxxxxxxxxxxxx> <20070308051242.81255.qmail@xxxxxxxxxxx>
On Mar 8, 12:12am, Atom Smasher wrote:
}
} ok... so, should the shell insert an implied "--" before expanding
} wildcards or globs? is there an option for that? should there be?
There was a long, not-quite-heated discussion of this on the POSIX
standards list ("austin-group") late last year.
The end result of the discussion was that David Korn (as in ksh)
suggested that this should be a line editor operation; that is, you
type some key sequence, and the line editor finds the place between
the rightmost word that starts with a hyphen and the leftmost word
that does not, and inserts "--" there. I believe PWS even wrote a
function for this and sent it to zsh-users.
No, I'm wrong; I'm thinking of zsh-users/10793, which is for a similar
but not quite identical problem. However, it should be easy to adapt
that function to do this.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author