zsh-users
 help / color / mirror / code / Atom feed
* array not working
@ 2006-11-26 12:15 zzapper
  2006-11-26 12:53 ` zzapper
  0 siblings, 1 reply; 5+ messages in thread
From: zzapper @ 2006-11-26 12:15 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-11-26 18:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-26 12:15 array not working zzapper
2006-11-26 12:53 ` zzapper
2006-11-26 13:35   ` Nikolai Weibull
2006-11-26 17:56     ` zzapper
2006-11-26 18:12   ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).