slew: a distribution-friendly init/rc framework based on s6/s6-rc
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

8 lines
132 B

#!/bin/rc
fn car { echo $1 | sed 's/^.*\.//' }
fn cdr { echo $1 | sed 's/\.[^.]*$//' }
self=`{basename `{pwd}}
name=`{car $self}