#!/bin/rc # fetch - a better down (cf. rsc) fn usage { echo >[1=2] usage: fetch [aux/statusbar options] url exit usage } opts=() while(~ $1 -*){ opts=($opts $1) shift } if(! ~ $#* 1) usage ofile=`{basename $1} hget -v -o $ofile $1 |[2] aux/statusbar $opts $ofile & exit ''