aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/rc/checkparse
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/rc/checkparse')
-rwxr-xr-xsrc/cmd/rc/checkparse14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cmd/rc/checkparse b/src/cmd/rc/checkparse
new file mode 100755
index 00000000..cccc4058
--- /dev/null
+++ b/src/cmd/rc/checkparse
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+files="$@"
+if [ $# = 0 ]; then
+ files=$(echo ./test.rc;
+ grep -l '^#!/usr/local/plan9/bin/rc' /usr/local/plan9/bin/{*,*/*} 2>/dev/null;
+ grep -l '^#!/bin/rc' $HOME/pub/plan9/rc/bin/{*,*/*} 2>/dev/null)
+fi
+
+for i in $files
+do
+ echo '#' $i
+ diff <(./o.rc -DY $i 2>&1) <(./o.rc -D $i 2>&1)
+done