File: list

package info (click to toggle)
ircii 20190117-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,788 kB
  • sloc: ansic: 44,172; makefile: 863; sh: 524; perl: 291
file content (14 lines) | stat: -rw-r--r-- 224 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#	$eterna: list,v 1.3 2001/08/12 15:57:11 mrg Exp $
#
# showlist <list of items>

alias showlist {
	@ sl.cnt = 0
	while (sl.wrd = [$($sl.cnt)])
	{
		echo $sl.wrd
		@sl.cnt = sl.cnt + 1
	}
	^assign -sl.cnt
	^assign -sl.wrd
}