summaryrefslogtreecommitdiff
path: root/busybox/testsuite/grep/grep-matches-NUL
diff options
context:
space:
mode:
Diffstat (limited to 'busybox/testsuite/grep/grep-matches-NUL')
-rw-r--r--busybox/testsuite/grep/grep-matches-NUL8
1 files changed, 8 insertions, 0 deletions
diff --git a/busybox/testsuite/grep/grep-matches-NUL b/busybox/testsuite/grep/grep-matches-NUL
new file mode 100644
index 0000000..082bd87
--- /dev/null
+++ b/busybox/testsuite/grep/grep-matches-NUL
@@ -0,0 +1,8 @@
+set +e
+echo -e '\0' | busybox grep .
+if [ $? != 0 ] ; then
+ exit 0;
+fi
+
+exit 1;
+