zsh-users
 help / color / mirror / code / Atom feed
From: "Damien Thébault" <damien.thebault@gmail.com>
To: zsh-users@zsh.org
Subject: Re: Why the l parameter flag in this case not work?
Date: Tue, 20 Mar 2012 09:57:08 +0100	[thread overview]
Message-ID: <CAEcrOvCsRGsfvCO_n6HfkjG=_REbGuu4nCTbb+zZK7w+_2o+xw@mail.gmail.com> (raw)
In-Reply-To: <20120320083214.GA3818@lilyforest>

On Tue, Mar 20, 2012 at 09:32, lilydjwg <lilydjwg@gmail.com> 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


  reply	other threads:[~2012-03-20  8:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-20  8:32 lilydjwg
2012-03-20  8:57 ` Damien Thébault [this message]
2012-03-20 13:41   ` lilydjwg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEcrOvCsRGsfvCO_n6HfkjG=_REbGuu4nCTbb+zZK7w+_2o+xw@mail.gmail.com' \
    --to=damien.thebault@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).