-function download() {
- if [ $# = 0 ]; then
- echo usage: download file [file...]
- return 100
- fi
- pwd=$PWD/
- pwd=${pwd##/home/iain/www/}
- if echo $pwd | grep -q ^/; then
- echo not rooted under /home/iain/www
- unset pwd
- return 111
- fi
-# scp ${1+"$@"} 64.176.170.109:/home/iain/$pwd
- lftp -c "open web1.viagold.net; cd $pwd; mget $@"
- unset pwd
-}
-alias debug='valgrind --leak-check=yes --show-reachable=yes --num-callers=5 --verbose'