zsh-users
 help / color / mirror / code / Atom feed
* Word splitting in parameter expansion
@ 2003-05-02 15:45 Björn Lindström
  2003-05-02 15:56 ` Peter Stephenson
  0 siblings, 1 reply; 5+ messages in thread
From: Björn Lindström @ 2003-05-02 15:45 UTC (permalink / raw)
  To: zsh-users

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@privat.utfors.se>
Home page: http://hem.fyristorg.com/bkhl/
Blog: http://bkhl.livejournal.com/
Elektrubadur demo: http://hem.fyristorg.com/bkhl/elektrubadur/


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

end of thread, other threads:[~2003-05-02 16:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-02 15:45 Word splitting in parameter expansion Björn Lindström
2003-05-02 15:56 ` Peter Stephenson
2003-05-02 16:08   ` Lloyd Zusman
2003-05-02 16:14     ` Peter Stephenson
2003-05-02 16:25       ` Lloyd Zusman

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).