HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/ircII/script/repeat
#	$eterna: repeat,v 1.2 2001/08/12 15:57:12 mrg Exp $
#
# Use a simply while loop to repeat a command.
alias repeat {
	@ rep.cnt = [$0]
	while ( rep.cnt > 0 )
	{
		$1-
		@rep.cnt = rep.cnt - 1
	}
	^assign -rep.cnt
}

# Do the samn thing with recursion  See.. SET MAX_RECURSIONS
alias recrepeat {
	if ([$0] > 0)
	{
		$1-
		recrepeat ${[$0] -1} $1-
	}
}