Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Word splitting in parameter expansion
- X-seq: zsh-users 6063
- From: Björn Lindström <bkhl@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Word splitting in parameter expansion
- Date: Fri, 02 May 2003 17:45:56 +0200
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
I've got this in my .zshrc:
man() {
screen -h 0 -t "man $@" man $@
}
This works fine as long as I only supply the function with one argument,
such as "man access", but when I do "man 5 access", it interprets
"5 access" as one argument (even though that is not what I meant ;-).
I have read through the zshexpn man page, and tried quite a few
variations on this, but can't seem to figure it out. Can anyone help me
out?
--
Björn Lindström <bkhl@xxxxxxxxxxxxxxxx>
Home page: http://hem.fyristorg.com/bkhl/
Blog: http://bkhl.livejournal.com/
Elektrubadur demo: http://hem.fyristorg.com/bkhl/elektrubadur/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author