From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14962 invoked by alias); 26 Mar 2015 15:22:54 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 34783 Received: (qmail 12981 invoked from network); 26 Mar 2015 15:22:41 -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,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:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=J1lO9JO+5HEv3MERPanBXcnG3E6pKkm9FzuypGCD2IE=; b=DrH1qfwAV0Xrz70/cTfkBUqS8ANZ9A53MNy20f1HNVVk3GYcF9knySrcJgBZ1GfWeF UAJMGRwSdzbZSbl2ewdWoCr1oQimI9RS7HFCTuxoolkSHBK6SXYlY5hw7/8SwkRPhmY3 6ByeJG2iNcBb5B4KnhYx4Ze3wOJDTFR1FFNYVb86IK59+FDuu94AZCUSdvKN+6xE5BHD tQpBBGkJ+mXJeUeug7S+KYcExl2jHxU31H6KPlC2hQXxQlDZGT7h8Nx2z6lT9W2+gZ5R pv5MJ+e5XluBnEQGoYQDmOzRyUXl+S8qtKk9E3vTvPOj+mhsIEvXI9mfI32IAPJw2m9o b/nA== X-Gm-Message-State: ALoCoQl/CPkb7KQ6iuMtFroeY6jnLaIRyALzQciAPoidzzBVduu9rIeKA3g56k3goHJWQyAv4f3F X-Received: by 10.202.90.3 with SMTP id o3mr11540231oib.99.1427383356335; Thu, 26 Mar 2015 08:22:36 -0700 (PDT) From: Bart Schaefer Message-Id: <150326082233.ZM2424@torch.brasslantern.com> Date: Thu, 26 Mar 2015 08:22:33 -0700 In-Reply-To: <20150326094104.161af4d5@pwslap01u.europe.root.pri> Comments: In reply to Peter Stephenson "Re: PATCH: Removing aliases from history, 2015 style (was capturing output of !! not working)" (Mar 26, 9:41am) References: <20150319105716.620cd931@pwslap01u.europe.root.pri> <20150319125351.1e270c2d@pwslap01u.europe.root.pri> <20150320105703.2754b6af@pwslap01u.europe.root.pri> <150320090420.ZM21908@torch.brasslantern.com> <20150322183556.1fa0f143@ntlworld.com> <150322162235.ZM1728@torch.brasslantern.com> <20150323213426.21fd79c8@ntlworld.com> <20150325154853.7efc21d0@pwslap01u.europe.root.pri> <150325124032.ZM32185@torch.brasslantern.com> <20150326094104.161af4d5@pwslap01u.europe.root.pri> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: "Zsh Hackers' List" Subject: Re: PATCH: Removing aliases from history, 2015 style (was capturing output of !! not working) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Mar 26, 9:41am, Peter Stephenson wrote: } Subject: Re: PATCH: Removing aliases from history, 2015 style (was capturi } } > It may be appropriate to point out this tidbit: } > } > torch% alias -g '&&'=foo } > torch% echo foo&&bar } > foo foobar } } The original one was to be able to do } } && stuff } } by aliasing (not to "foo", obviously) at the start of an expression, so } it had its normal effect at the end. You can't do that any more. Sure you can. Just not exactly the way the original example was written. torch% alias -g '&&'='; (( $? == 0 )) && ' torch% && print this is OK this is OK torch% && print and so is this && print also this and so is this also this torch%