Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
array not working
- X-seq: zsh-users 11032
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: array not working
- Date: Sun, 26 Nov 2006 12:15:47 +0000 (UTC)
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: SuccessTheory
- Sender: news <news@xxxxxxxxxxxxx>
Hi a previously working zsh script
#!/bin/zsh
echo $SHELL
dirbackup="c:/backup/mysql/"
mysqldump="/c/mysql41/bin/mysqldump"
param="--add-drop-table "
server="www.someurl.co.uk"
someurl=(database login password filename)
"$mysqldump" $param -h $server -u${someurl[1]} -p$someurl[2] -B ${someurl
[0]} > ${someurl[3]}.sql
What is happening is that ${someurl[1]} $someurl[2] ${someurl[0]}
are all evaulating to the same value (first element in array)
zsh 4.3.2 (i686-pc-cygwin)
what daft thing am i doing?
--
http://successtheory.com/tips/ Vim, Zsh, MySQL Tips
Messages sorted by:
Reverse Date,
Date,
Thread,
Author