zsh-users
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: Pier Paolo Grassi <pierpaolog@gmail.com>
Cc: Bart Schaefer <schaefer@brasslantern.com>,
	linuxtechguy@gmail.com,  zsh <zsh-users@zsh.org>
Subject: Re: Debug zsh (was: Re: quoting question)
Date: Wed, 13 Sep 2023 17:28:14 +0200	[thread overview]
Message-ID: <CAHYJk3SuMJ0cQ+287_J9KkPn5VFwKxX_QFZvjTT6r0e2gL8SsA@mail.gmail.com> (raw)
In-Reply-To: <CAP+y1xDXDChBkauGoZzo3Ft2RoFfi-wv8vfV=vhgBEkt9Qeozg@mail.gmail.com>

On 9/13/23, Pier Paolo Grassi <pierpaolog@gmail.com> wrote:
> Il giorno mer 13 set 2023 alle ore 05:42 Bart Schaefer <
> schaefer@brasslantern.com> ha scritto:
>
>> On Tue, Sep 12, 2023 at 7:51 PM Jim <linux.tech.guy@gmail.com> wrote:
>> >
>> > Unless I misunderstood, adding 'setopt ignorebraces' to the function,
>> returned the
>> > same results as it did without it. Don't know if that helps, or
>> > confuses
>> things more.
>>
>> You have to setopt ignorebraces before you define the datetimetest
>> function.  Otherwise the internals of the function have already been
>> parsed and the behavior doesn't change.
> Hello, hope I'm doing this banching of the thread the right way

other than the top posting, it's probably fine :).

> I would like to understand this:
>
> % echo "${:-{{{{}"
> <dquote braceparam braceparam braceparam braceparam dquote:~code/zsh>%
>
> is that output generated automatically or was it human-made?

That's the PS2 prompt, you can see the same thing if you run the same
command but without the quotes. The output above was meant to
demonstrate that the patch adding the same behavior with quotes would
be very backwards incompatible. (The expected result is to print the
string "{{{{")

-- 
Mikael Magnusson


  reply	other threads:[~2023-09-13 15:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-12 18:45 quoting question Jim
2023-09-12 20:06 ` Bart Schaefer
2023-09-13  2:50   ` Jim
2023-09-13  3:41     ` Bart Schaefer
2023-09-13 15:09       ` Debug zsh (was: Re: quoting question) Pier Paolo Grassi
2023-09-13 15:28         ` Mikael Magnusson [this message]
2023-09-13 11:28   ` quoting question Jim
2023-09-13 16:11     ` Bart Schaefer
2023-09-12 20:07 ` Peter Stephenson
2023-09-12 20:23   ` Bart Schaefer
2023-09-12 20:29     ` Bart Schaefer
2023-09-13  1:56       ` Mikael Magnusson
2023-09-13  8:50         ` Peter Stephenson

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=CAHYJk3SuMJ0cQ+287_J9KkPn5VFwKxX_QFZvjTT6r0e2gL8SsA@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=linuxtechguy@gmail.com \
    --cc=pierpaolog@gmail.com \
    --cc=schaefer@brasslantern.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).