summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-01-14 15:58:35 -0500
committerJune McEnroe <june@causal.agency>2019-01-14 15:58:35 -0500
commit6d47df31e962e1e5b9bc3e6b5a3a5a3f9c3b4997 (patch)
tree692b352635a3d2da69151ef73bf1e0fadadae91a
parentDocument old=new argument of fc -s (diff)
downloadsrc-6d47df31e962e1e5b9bc3e6b5a3a5a3f9c3b4997.tar.gz
src-6d47df31e962e1e5b9bc3e6b5a3a5a3f9c3b4997.zip
Add cash.7 README
Diffstat (limited to '')
-rw-r--r--bin/cash/Makefile3
-rw-r--r--bin/cash/README28
-rw-r--r--bin/cash/cash.12
-rw-r--r--bin/cash/cash.763
4 files changed, 95 insertions, 1 deletions
diff --git a/bin/cash/Makefile b/bin/cash/Makefile
index f1f026f0..4a9ec599 100644
--- a/bin/cash/Makefile
+++ b/bin/cash/Makefile
@@ -82,3 +82,6 @@ install: cash $(MAN1)
 
 uninstall:
 	rm -f $(PREFIX)/bin/cash $(MAN1:%=$(MANDIR)/man1/%)
+
+README: cash.7
+	mandoc cash.7 | col -bx > README
diff --git a/bin/cash/README b/bin/cash/README
new file mode 100644
index 00000000..dac1cec5
--- /dev/null
+++ b/bin/cash/README
@@ -0,0 +1,28 @@
+CASH(7)            FreeBSD Miscellaneous Information Manual            CASH(7)
+
+NAME
+     cash – the Causal Agency shell
+
+DESCRIPTION
+     cash is a shell derived from FreeBSD sh(1), which is in turn derived from
+     Almquist shell.  It includes editline(3) from NetBSD.
+
+   Differences from sh(1)
+     •   ENV defaults to ‘${XDG_CONFIG_HOME:-${HOME}/.config}/cash/env.sh’.
+
+     •   PS0 is printed before each prompt, allowing multi-line prompts.
+
+     •   Right-aligned prompts can be set with RPS1 and RPS2.
+
+     •   PSlit can be used to embed terminal escape sequences in prompts, as
+         in NetBSD sh(1).
+
+     •   HOME is shortened to ‘~’ in prompt expansion.
+
+     •   fc -s =new allows prefixing commands with new.
+
+HISTORY
+     sh(1) sources were imported from FreeBSD 12.0.  editline(3) sources were
+     imported from NetBSD 8.0.
+
+Causal Agency                  January 14, 2019                  Causal Agency
diff --git a/bin/cash/cash.1 b/bin/cash/cash.1
index 7cd96c3a..e152d625 100644
--- a/bin/cash/cash.1
+++ b/bin/cash/cash.1
@@ -2512,7 +2512,7 @@ nor
 .It Fl s
 Re-execute the command without invoking an editor.
 .
-.It Ar old Ns = Ns new
+.It Ar old Ns = Ns Ar new
 Replace the first occurrence of
 .Ar old
 in the command with
diff --git a/bin/cash/cash.7 b/bin/cash/cash.7
new file mode 100644
index 00000000..35f9fc4f
--- /dev/null
+++ b/bin/cash/cash.7
@@ -0,0 +1,63 @@
+.Dd January 14, 2019
+.Dt CASH 7
+.Os "Causal Agency"
+.
+.Sh NAME
+.Nm cash
+.Nd the Causal Agency shell
+.
+.Sh DESCRIPTION
+.Nm
+is a shell derived from
+.Fx
+.Xr sh 1 ,
+which is in turn derived from Almquist shell.
+It includes
+.Xr editline 3
+from
+.Nx .
+.
+.Ss Differences from Xr sh 1
+.Bl -bullet
+.It
+.Va ENV
+defaults to
+.Ql ${XDG_CONFIG_HOME:-${HOME}/.config}/cash/env.sh .
+.
+.It
+.Va PS0
+is printed before each prompt,
+allowing multi-line prompts.
+.
+.It
+Right-aligned prompts can be set with
+.Va RPS1
+and
+.Va RPS2 .
+.
+.It
+.Va PSlit
+can be used to embed terminal escape sequences in prompts,
+as in
+.Nx
+.Xr sh 1 .
+.
+.It
+.Va HOME
+is shortened to
+.Sq ~
+in prompt expansion.
+.
+.It
+.Ic fc Fl s Ar = Ns Ar new
+allows prefixing commands with
+.Ar new .
+.El
+.
+.Sh HISTORY
+.Xr sh 1
+sources were imported from
+.Fx 12.0 .
+.Xr editline 3
+sources were imported from
+.Nx 8.0 .
ass='logheader'>2021-08-20Handle TLS_WANT_POLL{IN,OUT} from tls_handshake(3) with serverJune McEnroe 2021-08-20Use "secure" libtls ciphersJune McEnroe Ported from catgirl: commit 585039fb6e5097cfd16bc083c6d1c9356b237882 Author: Klemens Nanni <klemens@posteo.de> Date: Sun Jun 20 14:42:10 2021 +0000 Use "secure" libtls ciphers d3e90b6 'Use libtls "compat" ciphers' from 2018 fell back to "compat" ciphers to support irc.mozilla.org which now yields NXDOMAIN. All modern networks (should) support secure ciphers, so drop the hopefully unneeded list of less secure ciphers by avoiding tls_config_set_ciphers(3) and therefore sticking to the "secure" aka. "default" set of ciphers in libtls. A quick check shows that almost all of the big/known IRC networks support TLS1.3 already; those who do not at least comply with SSL_CTX_set_cipher_list(3)'s "HIGH" set as can be tested like this: echo \ irc.hackint.org \ irc.tilde.chat \ irc.libera.chat \ irc.efnet.nl \ irc.oftc.net | xargs -tn1 \ openssl s_client -quiet -cipher HIGH -no_ign_eof -port 6697 -host 2021-07-08Use seprintf to build final 005June McEnroe Rather than causing a tls_write(3) for each remaining token. 2021-06-19Fix LDADD.crypt on DarwinJune McEnroe 2021-06-18Add -m mode option to set user modesJune McEnroe 2021-06-18Document channel keys in join optionJune McEnroe 2021-06-18Use | to separate flags from config optionsJune McEnroe This lets mandoc generate tags for the option names as well, so you can ":t away" in less(1), for example, and anchor links in HTML output. The added No's prevent the equals signs from being part of the anchor links. 2021-06-18Stop referring to server-time as IRCv3.2June McEnroe IRCv3 has moved away from grouping specs together into versions like this. SASL is still referred to as IRCv3.2 because there are two different versions of that spec. 2021-06-17Add mailing list archive to READMEJune McEnroe 2021-06-10Stop accumulating ISUPPORT tokens once MOTD startsJune McEnroe This avoids duplicating tokens when a client sends VERSION and the server responds with its 005s again. 2021-06-09Use seprintf for snip, removing strlcpynJune McEnroe 2021-06-09Use seprintf for reserializeJune McEnroe 2021-06-09Use seprintf for capListJune McEnroe 2021-06-09Add seprintfJune McEnroe Based on seprint(2) from Plan 9. I'm not sure if my return value exactly matches Plan 9's in the case of truncation. seprint(2) is described only as returning a pointer to the terminating '\0', but if it does so even in the case of truncation, it is awkward for the caller to detect. This implementation returns end in the truncation case, so that (ptr == end) indicates truncation. 2021-05-27Add pounce-notify to README 2.4June McEnroe 2021-05-27Fix ENVIRONMENT formatting in pounce-notify(1)June McEnroe 2021-05-27Add note about Libera.Chat SASL-only rangesJune McEnroe 2021-05-25Add QUIRKS fileJune McEnroe 2021-05-19Replace freenode with tilde.chatJune McEnroe 2021-05-04notify: Reword pounce-notify manualJune McEnroe 2021-05-02Clean up Makefiles, configure scriptsJune McEnroe Default MANDIR to ${PREFIX}/man since it turns out man-db includes /usr/local/man by default. Add support for BINDIR. Separate libs out into LDADD variables. 2021-04-30palaver: Exit on getopt failureJune McEnroe Oops. 2021-04-30notify: Implement pounce-notifyJune McEnroe