~sircmpwn/rc-devel

rc(1): document $'var v1 APPLIED

Max Schillinger: 1
 rc(1): document $'var

 1 files changed, 5 insertions(+), 2 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/rc-devel/patches/46375/mbox | git am -3
Learn more about email & git

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

---
 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
Thanks!

To git@git.sr.ht:~sircmpwn/rc
   c8f393b..f408a95  master -> master