rc
rc copied to clipboard
rc shell -- independent re-implementation for Unix of the Plan 9 shell (from circa 1992)
Tab completion causes crash. ### How to reproduce 1. start rc 2. hit the Tab key ``` ~ $ rc ; free(): double free detected in tcache 2 Aborted ```...
Undefined variables or misspelled variables are a common source of bugs. When coding in bash, I always set -u. Really want this in rc. Suggest: flag u [+|-] To paraphrase...
Example: ``` if (false) echo FALSE # This truth value will be used by ifnot if (true) echo TRUE if not echo NOT TRUE ``` This erroneously outputs NOT TRUE....
I do not know if this is a bug or if I'm just stupid. but. ``` cd /tmp;touch hello.mkv for (* in *.[mM][Kk][vV] *.[Mm][Pp]4){ ~ $^* '*'.* || echo $*...
Subject quoted literally from the man page. Just to say: yes, that would be very nice.
This file became vestigial after: https://github.com/rakitzis/rc/commit/89f1e1b445c2c50ffb61fa1327e11c475eb1b57f
``` fn isdir { @{ cd $^*;return $status } } isdir / ``` will set directory to / instead of being insulated from the command Not only that, but when...
`; /bin/rc ./test-exit still alive ; /usr/lib/plan9/bin/rc ./test-exit ; ; cat test-exit #!/bin/rc fn foo { exit 1 } foo >/dev/null echo 'still alive' ; ` plan9port's rc behaves as...
EDIT: to be precise, it only needs `tgetent()` when `--enable-termcap` is explicitly given in its configuration... ```diff diff -ur rc-1.7.4/configure.ac rc-1.7.4/configure.ac --- rc-1.7.4/configure.ac 2015-05-17 04:23:26.000000000 +0800 +++ rc-1.7.4/configure.ac 2020-09-08 00:55:09.949411192...