shithub: orca

Download patch

ref: cd31f04c284d181a428816a71bbfbf0eaded4fb9
parent: e47e8d5a5b5fa15bb27d063d0132107251a56771
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue May 12 17:52:05 EDT 2020

plan9: treat (semi)colon as arguments separator with commands

--- a/orca.man
+++ b/orca.man
@@ -180,7 +180,9 @@
 .B Ctrl+k
 or with a
 .B $
-operator. All commands except
+operator.  Arguments may be separated with a (semi)colon as well as
+any whitespace characters.
+All commands except
 .I undo
 ,
 .I redo
--- a/plan9.c
+++ b/plan9.c
@@ -786,7 +786,7 @@
 		return;
 	}
 
-	if ((argc = tokenize(tmp, argv, nelem(argv))) < 1)
+	if ((argc = gettokens(tmp, argv, nelem(argv), ":;\t\r\n ")) < 1)
 		return;
 	s = argv[0];