From 60df1f9eece3b0f9a03ef146f0d978c5768304e6 Mon Sep 17 00:00:00 2001 From: Andrey Borzenkov Date: Sat, 26 May 2001 08:41:01 +0000 Subject: 14489: workaround for find bug on ReliantUNIX --- Test/C02cond.ztst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '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)' -- cgit 1.4.1