Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Variable with Variable Name



Hi,

function SSS()
{
# description : create a set variable with variable name
$1=`pwd`;  # What I want but THIS DOESNT WORK
echo $1
}

So if I called this

> SSS fred

Would create a variable fred containing the path of the current directory

-- 
zzapper
http://www.rayninfo.co.uk/vimtips.html



Messages sorted by: Reverse Date, Date, Thread, Author