Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Tar file and Re: Bad interaction between -iprefix and -string
- X-seq: zsh-workers 5348
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: Tar file and Re: Bad interaction between -iprefix and -string
- Date: Fri, 12 Feb 1999 09:53:59 +0100 (MET)
- In-reply-to: "Bart Schaefer"'s message of Thu, 11 Feb 1999 10:39:25 -0800
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
> On Feb 11, 6:08pm, Peter Stephenson wrote:
> } Subject: Re: Tar file and Re: Bad interaction between -iprefix and -string
> }
> } [...] for some reason
> }
> } for i in "$patcomps[@]"; do
> }
> } was being called when patcomps was empty (should it really do that?)
>
> Hmm. You mean the for loop, looped? Obviously it shouldn't do that.
> How was patcomps initialized up to that point?
The array isn't initialised at all, look:
% foo() { echo $# }
% unset a
% foo $a[@]
0 # fine
% foo "$a[@]"
1 # oops
The same for `$a[*]' and `$a'.
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author