summaryrefslogtreecommitdiff
path: root/tripping.c
diff options
context:
space:
mode:
authortjg <tjg>2001-10-02 13:00:14 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:19 +0100
commit38da49b97b529815045c23cfef4820a56179eebb (patch)
treee0d300d5b7ab5dffdaca878ac0eed5a01d39a9a8 /tripping.c
parentebb96bbbc075c304c6f8cbf8c4d301a35fd64114 (diff)
Bug: the ^A bug is fixed.
Bug: it's no longer possible to use parentheses to sneak a word that needs quoting past the "quoting detector", so `fn x { echo $(x.y) }' now works both in the current rc and its descendants.
Diffstat (limited to 'tripping.c')
-rw-r--r--tripping.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tripping.c b/tripping.c
index 911d229..1adcc37 100644
--- a/tripping.c
+++ b/tripping.c
@@ -10,6 +10,10 @@ void out0(void) {
putchar('\n');
}
+void ctrl_a(void) {
+ puts("a\001ab\002b");
+}
+
void makenonblock(void) {
int flags;
@@ -25,6 +29,9 @@ int main(int argc, char **argv) {
case '0':
out0();
break;
+ case 'a':
+ ctrl_a();
+ break;
case 'n':
makenonblock();
break;