~sircmpwn/rc-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] rc(1): document $'var

Details
Message ID
<20231103134031.43715-1-max@mxsr.de>
DKIM signature
missing
Download raw message
Patch: +5 -2
---
 doc/rc.1.scd | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/doc/rc.1.scd b/doc/rc.1.scd
index fdc9877..e2e47db 100644
--- a/doc/rc.1.scd
+++ b/doc/rc.1.scd
@@ -146,14 +146,17 @@ and marked as exported.
	error; it returns 0 in this case.

*$"var*
*$'var*
	If *var* is a list variable, it will be expanded into a single string
	consisting of all of its values, separated by spaces. String variables
	are expanded normally if accessed with *$"*.
	consisting of all of its values, separated by spaces or joined without
	separators, respectively. String variables are expanded normally if accessed
	with *$"*.

	```
	x=(one two three)
	echo $x  # echo "one" "two" "three"
	echo $"x # echo "one two three"
	echo $'x # echo "onetwothree"
	```

*$var(*_n_*)*
-- 
2.42.0
Details
Message ID
<CXFJ4RVYTS1F.2APV3A57Q8LY2@taiga>
In-Reply-To
<20231103134031.43715-1-max@mxsr.de> (view parent)
DKIM signature
missing
Download raw message
Thanks!

To git@git.sr.ht:~sircmpwn/rc
   c8f393b..f408a95  master -> master
Reply to thread Export thread (mbox)