Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Why the l parameter flag in this case not work?
- X-seq: zsh-users 16912
- From: Damien Thébault <damien.thebault@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Why the l parameter flag in this case not work?
- Date: Tue, 20 Mar 2012 09:57:08 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=+hzGRXnQJoDgG2V9wyAkjkKM0pRGPgddy88iMNIJi/Y=; b=Qs1aE0bxvlejbCI0kRlxW2ZktoxNfv4IueXe2JjB6PB/4o/YvdWIXHaTAsXuYEsCX3 jHvk3JREzWd8XxioWoeJiISlZQaSmyhRR9+FNSV4h6VR6SGPflQz+1Lhx6lAb1dJ5KTn biGk4ZBGXQAi4gtGlg1LiBOqYolgFhKIHYrhzv0MAeSATDdC+6HMNr5KECyPWzuswsQh PbSAsk7WZZKqVCZs1ukCvUHHfM1002XVsybstt0MPjVSyPojevW4w3mFwtcB6ZrJAMbT 05zZZoQ4HImTW7AxFfk78/sMMZ56NHJg2Ap4n1PfzbajLCFxhUyzTbGHdvw0l0diSdss YTzQ==
- In-reply-to: <20120320083214.GA3818@lilyforest>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20120320083214.GA3818@lilyforest>
On Tue, Mar 20, 2012 at 09:32, lilydjwg <lilydjwg@xxxxxxxxx> 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..-.)}
Regards,
--
Damien Thebault
Messages sorted by:
Reverse Date,
Date,
Thread,
Author