Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] add r parameter to zcalc completion
- X-seq: zsh-workers 54246
- From: Stéphane Blondon <stephane.blondon@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] add r parameter to zcalc completion
- Date: Wed, 25 Mar 2026 18:00:48 +0100
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=tWFvHqsLjnfXJhQFWYNFPhV1oo9bxN1dlAqfD8rDP3k=; fh=SbTlPuNNxBzTkRlwWtqw/TXBY0HvGvtE97RpPp3sJPM=; b=Mn3mtlotQRX5dvQc0p9CA6jx/ZHQYAr0VuJ2ff+XBbUfIkM3BNh2urLwOzwC0rmvPy 77AoA4g2j0DcGOJoEMf/VV1YVoejvqEb9kbfMyjy0lvZJvzwkst5BN7wdTpaVJDpQVC+ McXfXqqK1u9TcXDQQOydTSX4u06Cgrdsq1xlAynbUZiAYoRmcn9l+moNX4q2pVAtGJxv Pf0XtiKEC0/tyhnpuSPmrtY+Z0OLhDa4bye8OYuH9KvArOKgsbXO+P+nJFbz7AkoxIgG F/6s/NSga7xdL4Q/i7LvEc5My2uJ7VuK5KqdWi5SCKunmae0qDo13hrJ41LAHrzPEsRG ad6w==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1774458064; cv=none; d=google.com; s=arc-20240605; b=Iffr/Rv2hzpFqWDtQLgsptHeyAgEgAYTcZQEZsASKdnVxaXZ+JN8OAAXodh3USfuEK 7TQCDz6NgHrReA3NVHRueX3XQssEB1EuJCxr0+bDNEA0fLL5QDqPfk8uPB5JannD7rIP +uoZDTbC4BomGkGalSndttnYD1jP2siB5qhF3TfbnECGbVn5VqIZMhOM4I001lcVxB+H wq0CTAUYSIW2NZZiLmNLMY0cwnHLwEdhbQn00TBBFLUgVUGqio9NlQW0xe7hl5gQw44c nGRYsTDLZklklMZF9tfDqL6Qw9c+TS7RbYG9DG25fELslhUiRZX79lUBxRP73cM2LoPa j8/w==
- Archived-at: <https://zsh.org/workers/54246>
- List-id: <zsh-workers.zsh.org>
Hello,
zcalc has a documented `r` parameter to enable RPN:
https://github.com/zsh-users/zsh/blob/master/Functions/Misc/zcalc#L192
The patch adds the parameter to the completed options.
I subscribed to the mailing list.
diff --git i/Completion/Zsh/Function/_zcalc w/Completion/Zsh/Function/_zcalc
index 093a7a91d..f4432823f 100644
--- i/Completion/Zsh/Function/_zcalc
+++ w/Completion/Zsh/Function/_zcalc
@@ -4,4 +4,5 @@ _arguments -s -w -S : \
'-#[specify default base]:base: ' \
'-f[force floating point for all expressions]' \
'-e[treat command line as expressions to be output immediately]' \
+ '-r[enable Reverse Polish Notation]' \
'*:expression: '
Messages sorted by:
Reverse Date,
Date,
Thread,
Author