From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22305 invoked by alias); 20 Dec 2014 02:09:09 -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: 19614 Received: (qmail 20876 invoked from network); 20 Dec 2014 02:09:06 -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 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=CoYIqc8G c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=A92cGCtB03wA:10 a=uZk-lKDJfI6t101VjpQA:9 a=CjuIK1q_8ugA:10 From: Bart Schaefer Message-id: <141219180934.ZM30229@torch.brasslantern.com> Date: Fri, 19 Dec 2014 18:09:34 -0800 In-reply-to: <20335.1418988086@thecus.kiddle.eu> Comments: In reply to Oliver Kiddle "Re: surprise with echo" (Dec 19, 12:21pm) References: <54937E5B.2020008@eastlink.ca> <141218190653.ZM16331@torch.brasslantern.com> <20335.1418988086@thecus.kiddle.eu> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh Users Subject: Re: surprise with echo MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Dec 19, 12:21pm, Oliver Kiddle wrote: } } I've never regarded the rc_expand_param and rc_quotes options as being } there to emulate rc. They are merely inspired by rc. This is also a truism. } > > Only by turning off the option, or by doing e.g. ${@:-''} so that the } > > expansion is the empty string rather than the empty array. } } $^^@ will also do the job of disabling the option. Right. The important detail is that XX${@:-''}ZZ will produce similar results whether or not $@ is empty, whereas XX${^^@}ZZ does something different when $@ is NOT empty. (Assuming in both cases rcexpandparam is set.)