From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20680 invoked by alias); 2 Nov 2014 21:00:33 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19311 Received: (qmail 15440 invoked from network); 2 Nov 2014 21:00:18 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=vctqxbVI2sXJimc7E8dJY8Jnllqvm1+zThf6/ad4B/M=; b=UYD6HlJ95mQMYUqZsOG02nWfKSbUhHbJoXhjY84VcKeSg82k/90HSe1sWnycBY+atU aDmtw+KByWZHni2GKswjIRaY7AOteBzGyDoBGuz+Qr6lteWXMGy7q7RA0ki/gj+wNw5m YUhBESenvC1LP4Ivt9BpC+TP/5SKq1rYDZ0uWy+2FIl7rjtzHdG7Q1d48XY6iszg0pYK b8ZObZoBma0TO5EuWiJAJqRAPGhYKHwEfrVfWb4zFE7Uzoalqz3yXNH8GtCyuSPuM7Sa ba95UiHqH+W/24kQmxQOxZNA9A30BiV5lqwz6FOHRJF+JmI3kqRMnEUypZ9Az+5KW5J+ zuBQ== X-Gm-Message-State: ALoCoQlpWxmq/myZNzOZ0RpHmY8Y7Japrk+P+JGi73pVjIr3eq9Faa7HSzjnXpla8K3+x98Hcfgq MIME-Version: 1.0 X-Received: by 10.229.118.1 with SMTP id t1mr58794161qcq.17.1414962014270; Sun, 02 Nov 2014 13:00:14 -0800 (PST) In-Reply-To: <5456984A.3020001@eastlink.ca> References: <5456984A.3020001@eastlink.ca> Date: Sun, 2 Nov 2014 13:00:14 -0800 Message-ID: Subject: Re: for loop question From: Bart Schaefer To: Ray Andrews Cc: Zsh Users Content-Type: multipart/alternative; boundary=001a1133097a3b4ecf0506e6840c --001a1133097a3b4ecf0506e6840c Content-Type: text/plain; charset=UTF-8 > I've fiddled around with various modifications but it seems to dislike " [ -n "$TLC[i]" ] " > even though the 'while' loop is happy with it. That expression evaluates to true or > false, does it not? So why won't 'for' swallow it? The double parents (( )) are special arithmetic syntax. You can't use an ordinary shell command like "test" ( for which "[" is an alias) inside that construct. --001a1133097a3b4ecf0506e6840c--