zsh-users
 help / color / mirror / code / Atom feed
* duplicating functions
@ 2005-10-20  9:35 zzapper
  2005-10-20 11:59 ` Jean Chalard
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: zzapper @ 2005-10-20  9:35 UTC (permalink / raw)
  To: zsh-users

Hi,
I have a series of functions defined .zshenv

function g0() { gmark $0 $* }
function g1() { gmark $0 $* }
function g2() { gmark $0 $* }
function g3() { gmark $0 $* }
function g4() { gmark $0 $* }
function g5() { gmark $0 $* }
function g6() { gmark $0 $* }
function g7() { gmark $0 $* }
function g8() { gmark $0 $* }
function g9() { gmark $0 $* }

Where gmark contains the code and $0 is used to determine which original function was called

Is there are simpler way of doing this

-- 
zzapper
Success for Techies and Vim,Zsh tips
http://SuccessTheory.com/


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

end of thread, other threads:[~2005-10-21 15:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-20  9:35 duplicating functions zzapper
2005-10-20 11:59 ` Jean Chalard
2005-10-20 12:05   ` zzapper
2005-10-20 14:33 ` Bart Schaefer
2005-10-20 16:13 ` Andrey Borzenkov
2005-10-21  8:35   ` zzapper
2005-10-21 14:48     ` Speedy directory generation Meino Christian Cramer
2005-10-21 14:52       ` Peter Stephenson
2005-10-21 15:14         ` Meino Christian Cramer
     [not found]       ` <20051021145708.GV4387@wu.physik.uni-dortmund.de>
2005-10-21 15:18         ` Meino Christian Cramer

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