zsh-users
 help / color / mirror / code / Atom feed
From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-users@zsh.org
Subject: Re: Variable fails to increment with lvalue error
Date: Mon, 23 Oct 2023 11:21:29 -0700	[thread overview]
Message-ID: <9b1ec75f-3f94-47a3-ad82-baafbeaa6174@eastlink.ca> (raw)
In-Reply-To: <CAN=4vMpf=APBM+WwuqC9JcntFcEcBjRRpMXEH7XggbBaAHhXxg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 654 bytes --]


On 2023-10-23 10:03, Roman Perepelitsa wrote:
> Let's ask the OP if this would've been helpful.
>
> Evan, have you read this documentation page? It's available at

Beeeutiful!  Only the learner can say if a doc was useful, so ask him :-)

My two cents would be:

Note further that it would be incorrect to replace tt(val) with tt($val) as the latter is affected by the built-in double quote substitution, so that the arithmetic evaluation does not see the name of the variable but rather it's expanded value.  Thus if $val = 0, the latter expression would attempt: 0 = 2 + 1 ... which is obviously nonsense.

... maybe too much hand-holding there? ...

[-- Attachment #2: Type: text/html, Size: 1171 bytes --]

  reply	other threads:[~2023-10-23 18:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-23 15:27 Evan Clearfield
2023-10-23 15:33 ` Roman Perepelitsa
2023-10-23 16:43   ` Peter Stephenson
2023-10-23 17:03     ` Roman Perepelitsa
2023-10-23 18:21       ` Ray Andrews [this message]
2023-10-23 16:34 ` Dominik Vogt

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=9b1ec75f-3f94-47a3-ad82-baafbeaa6174@eastlink.ca \
    --to=rayandrews@eastlink.ca \
    --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).