shithub: finge.rc

ref: 917d5a3afac1decae21d2654d5ffe657c68eaf10
dir: /finge.rc/

View raw version
#!/bin/rc

nouser=/usr/glenda
scripts=/usr/glenda/finger

u=`{read | sed 's/
//g'}

if(~ $"u ''){
	p=$"nouser
}
if not {
	p=/usr/^$"u
}

if(test -d $"p){
	if(test -r $"p/.plan){
		cat $"p/.plan
	}
	if not {
		echo No plan.
	}
}
if not {
	if(test -x $"scripts/$"u.rc){
		echo `{rc $"scripts/$"u.rc}
	}
	if not {
		echo No such user.
	}
}