From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18118 invoked by alias); 4 Mar 2012 04:25:51 -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: 16823 Received: (qmail 18291 invoked from network); 4 Mar 2012 04:25:11 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <120303202448.ZM21278@torch.brasslantern.com> Date: Sat, 03 Mar 2012 20:24:48 -0800 In-reply-to: <4F52D510.6000002@sergio.spb.ru> Comments: In reply to sergio "[[ and [" (Mar 4, 6:36am) References: <4F52D510.6000002@sergio.spb.ru> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: [[ and [ MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Mar 4, 6:36am, sergio wrote: } } if [[ ]]; then ... fi } and } if [ ]; than ... fi } } OK, the first is an evaluating of the conditional expression, and what } is the second? An alias for the "test" builtin -- so everything that follows "[" is parsed/expanded like an ordinary command argument. It's in the zsh manual under the "test" command description.