summaryrefslogtreecommitdiff
path: root/rc/bin/ape/cat
blob: be6de075bafe5a8433243b0a57674a186f150c40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/rc

rfork e

files=()
while(! ~ $#* 0){
	switch($1){
	case -
		files=($files /fd/0)
	case -*
		;
	case *
		files=($files $1)
	}
	shift
}

exec /$cputype/bin/cat $files