git clone https://github.com/equwal/tmpl
Log | Files | Refs
sh/userhome (170 bytes)
1 checksafe () { 2 # do something here! 3 } 4 # instead of foo=~$user (doesn't work) 5 homedir () { eval "$1=~$2" ; } # consider: rm -f / in $2! 6 checksafe && homedir foo alice