zsh-workers
 help / color / mirror / Atom feed
* [PATCH] docs: More precisely, a double-quoted expression
@ 2020-11-12 17:42 ivan tkachenko
  2020-11-16 18:09 ` Daniel Shahaf
  0 siblings, 1 reply; 2+ messages in thread
From: ivan tkachenko @ 2020-11-12 17:42 UTC (permalink / raw)
  To: zsh-workers; +Cc: ivan tkachenko

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] docs: More precisely, a double-quoted expression
  2020-11-12 17:42 [PATCH] docs: More precisely, a double-quoted expression ivan tkachenko
@ 2020-11-16 18:09 ` Daniel Shahaf
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Shahaf @ 2020-11-16 18:09 UTC (permalink / raw)
  To: ivan tkachenko; +Cc: zsh-workers

ivan tkachenko wrote on Thu, 12 Nov 2020 20:42 +0300:
> 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

Thanks, applied.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-16 18:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-12 17:42 [PATCH] docs: More precisely, a double-quoted expression ivan tkachenko
2020-11-16 18:09 ` Daniel Shahaf

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