about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Test/C02cond.ztst3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index de2e4854d..f27149c56 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-26  Andrej Borsenkow <bor@zsh.org>
+
+	* 14489: Test/C02cond.ztst: workaround for (probably) find
+	bug on ReliantUNIX made visible by 14484.
+
 2001-05-25  Bart Schaefer  <schaefer@zsh.org>
 
 	* 14484: Test/C02cond.ztst: Print a warning and skip the -b test
diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst
index 2564ad125..aabbbf23a 100644
--- a/Test/C02cond.ztst
+++ b/Test/C02cond.ztst
@@ -27,7 +27,8 @@
 0:-a cond
 
   # Find a block special file system.  This is a little tricky.
-  if block=$(find /dev(|ices)/ -type b -print); then
+  block=$(find /dev(|ices)/ -type b -print 2> /dev/null)
+  if [[ -n $block ]]; then
     [[ -b $block[(f)1] && ! -b zerolength ]]
   else
     print -u8 'Warning: Not testing [[ -b blockdevice ]] (no devices found)'