From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2395 invoked by alias); 20 Mar 2012 13:42:18 -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: 16913 Received: (qmail 22456 invoked from network); 20 Mar 2012 13:42:17 -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.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.210.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:disposition-notification-to :user-agent; bh=jT6DW85EWxf3eAR8hrfLCCgHUvAilEoho49PJ0tWrgw=; b=0GsjNps+EDJyW2L+MZLOfJ7P2cWnRzRecS861jiQxq6R70+NOHbbzLqm9A6DMVmxRi +PD72UdK+KZtd9ysmmJtqxYWnXkALNOBKlzUixdgTlNC3PJ8z5Hi2M87SWeuxwlNMZzG wgtn1osOybWTg66UhagxIkoL5doFtJ+BYhc0NwpLG8CEUVZlHus+tZ7B6hrkMcXYCM3B KcOWAGzTH+B9BEr84tEuxZ/bUJ0YOuwVFf+ud3Wxz8viWvRvcAQEQsdYraF1yaXK+9SC 43s2i6Tfs1yzZ0ZV5jmEjqKpuevK6NRRj9teJaS6CVkYPRlpwK3kKzmxF5EEWWzy9M8V gtLA== Date: Tue, 20 Mar 2012 21:41:46 +0800 From: lilydjwg To: zsh-users@zsh.org Subject: Re: Why the l parameter flag in this case not work? Message-ID: <20120320134146.GA1825@lilyforest> Mail-Followup-To: zsh-users@zsh.org References: <20120320083214.GA3818@lilyforest> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) On Tue, Mar 20, 2012 at 09:57:08AM +0100, Damien Thébault wrote: > On Tue, Mar 20, 2012 at 09:32, lilydjwg wrote: > > I tried to print a line of `-' but not work: > > > > print ${(l.80..-.)} > > > > An empty line is printed. However, printing a line of `=' or other > > strings do work: > > > > print ${(l.80..+.)} > > > > I tried to quote `-', but only 40 `-'s are printed: > > > > print ${(l.80..\-.)} > > > > The "print" command is intepreting the expanded expression as an > argument, you can use "echo" or use "--" to tell the "print" command > that the end of arguments has been reached: > > echo ${(l.80..-.)} > print -- ${(l.80..-.)} Thanks! -- Best regards, lilydjwg