Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Variable with Variable Name
- X-seq: zsh-users 11824
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Variable with Variable Name
- Date: Wed, 12 Sep 2007 13:43:46 +0000 (UTC)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: SuccessTheory
- Sender: news <news@xxxxxxxxxxxxx>
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