aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/rc/test.rc
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2020-05-04 23:31:59 -0400
committerRuss Cox <rsc@swtch.com>2020-05-04 23:41:15 -0400
commitff74f7cdda7b08da6fe7c8bbcca990305fd6b547 (patch)
treeb09483dbdbc9e6908e2744c680b8d19447ff72c7 /src/cmd/rc/test.rc
parent7d6a248f2c68d70f58387afc69e73e695c3d940c (diff)
downloadplan9port-ff74f7cdda7b08da6fe7c8bbcca990305fd6b547.tar.gz
plan9port-ff74f7cdda7b08da6fe7c8bbcca990305fd6b547.tar.bz2
plan9port-ff74f7cdda7b08da6fe7c8bbcca990305fd6b547.zip
rc: allow unquoted = in command arguments
dd fans rejoice! Also helps with commands like go test -run=x.
Diffstat (limited to 'src/cmd/rc/test.rc')
-rw-r--r--src/cmd/rc/test.rc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cmd/rc/test.rc b/src/cmd/rc/test.rc
index 7a83ad17..f667b840 100644
--- a/src/cmd/rc/test.rc
+++ b/src/cmd/rc/test.rc
@@ -74,3 +74,12 @@ OPTIONS=$OPTIONS' /axescount '^`{echo $1 | sed s/-a//}^' def'
# bug in old printfont script - expected more free carats
# OPTIONS=$OPTIONS' /axescount '`{echo $1 | sed s/-a//}' def'
+
+(x) = y
+x=y
+x = y
+
+# works now!
+# x y=z
+# x =y
+# x -flag=y