From: zzapper <david@tvis.co.uk>
To: zsh-users@sunsite.dk
Cc: zsh-workers@sunsite.dk
Subject: Re: array not working
Date: Sun, 26 Nov 2006 12:53:37 +0000 (UTC) [thread overview]
Message-ID: <Xns98878329CBD7Ezzappergmailcom@80.91.229.5> (raw)
In-Reply-To: <Xns98877CBF8A380zzappergmailcom@80.91.229.5>
zzapper <david@tvis.co.uk> wrote in
news:Xns98877CBF8A380zzappergmailcom@80.91.229.5:
> 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?
>
>
Hi
Started new shell and problem went away, but arrays now seem to be
indexed from 1 rather than zero??
Did this change recently?
--
http://successtheory.com/tips/ Vim, Zsh, MySQL Tips
next prev parent reply other threads:[~2006-11-26 12:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-26 12:15 zzapper
2006-11-26 12:53 ` zzapper [this message]
2006-11-26 13:35 ` Nikolai Weibull
2006-11-26 17:56 ` zzapper
2006-11-26 18:12 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Xns98878329CBD7Ezzappergmailcom@80.91.229.5 \
--to=david@tvis.co.uk \
--cc=zsh-users@sunsite.dk \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).