Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: setopt and alias questions



On Feb 8,  2:46pm, Sweth Chandramouli wrote:
} Subject: Re: setopt and alias questions
}
} 	for those who are interested, here's the final version

We have to stop meeting like this ...

}    if [[ -n $@ ]] ; then
}       listalloptions | egrep "${@:s/ /|/}"
}    else listalloptions
}    fi;

That doesn't work, does it?

    zsh% argv=(x y z)
    zsh% print -l "${@:s/ /|/}"
    x
    y
    z
    zsh% print -l "${(j:|:)@}"
    x|y|z
    zsh% print -l "${*:gs/ /|/}"
    x|y|z

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



Messages sorted by: Reverse Date, Date, Thread, Author