From: ivan tkachenko <me@ratijas.tk> To: zsh-workers@zsh.org Cc: ivan tkachenko <me@ratijas.tk> Subject: [PATCH] docs: More precisely, a double-quoted expression Date: Thu, 12 Nov 2020 20:42:54 +0300 Message-ID: <20201112174254.1977876-1-me@ratijas.tk> (raw) Specifies exact kind of quoting which is assumed when parsing arithmetic ((expressions)). --- Doc/Zsh/arith.yo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/Zsh/arith.yo b/Doc/Zsh/arith.yo index c152bf48d..bc3e35ad5 100644 --- a/Doc/Zsh/arith.yo +++ b/Doc/Zsh/arith.yo @@ -20,7 +20,7 @@ The tt(let) builtin command takes arithmetic expressions as arguments; each is evaluated separately. Since many of the arithmetic operators, as well as spaces, require quoting, an alternative form is provided: for any command which begins with a `tt(LPAR()LPAR())', all the characters until a -matching `tt(RPAR()RPAR())' are treated as a quoted expression and +matching `tt(RPAR()RPAR())' are treated as a double-quoted expression and arithmetic expansion performed as for an argument of tt(let). More precisely, `tt(LPAR()LPAR())var(...)tt(RPAR()RPAR())' is equivalent to `tt(let ")var(...)tt(")'. The return status is 0 if the arithmetic value -- 2.29.1
next reply other threads:[~2020-11-12 17:43 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-11-12 17:42 ivan tkachenko [this message] 2020-11-16 18:09 ` Daniel Shahaf
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=20201112174254.1977876-1-me@ratijas.tk \ --to=me@ratijas.tk \ --cc=zsh-workers@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
zsh-workers This inbox may be cloned and mirrored by anyone: git clone --mirror http://inbox.vuxu.org/zsh-workers # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V1 zsh-workers zsh-workers/ http://inbox.vuxu.org/zsh-workers \ zsh-workers@zsh.org public-inbox-index zsh-workers Example config snippet for mirrors. Newsgroup available over NNTP: nntp://inbox.vuxu.org/vuxu.archive.zsh.workers code repositories for the project(s) associated with this inbox: https://git.vuxu.org/mirror/zsh/ AGPL code for this site: git clone https://public-inbox.org/public-inbox.git