summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Test/07cond.ztst6
2 files changed, 5 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index ceb421514..aeafb93a1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-05-03 Tanaka Akira <akr@m17n.org>
+
+ * 11137: Test/07cond.ztst: detect block device file using find.
+
2000-05-03 Bart Schaefer <schaefer@zsh.org>
* 11136: Doc/Zsh/expn.yo: Reorganize history expansion doc.
diff --git a/Test/07cond.ztst b/Test/07cond.ztst
index 1d1ba6679..827f2744e 100644
--- a/Test/07cond.ztst
+++ b/Test/07cond.ztst
@@ -27,11 +27,7 @@
0:-a cond
# Find a block special file system. This is a little tricky.
- block=$(df / | awk '
- $NF == "/" {print $1}
- $1 == "/" && substr($2,0,1) == "(" {
- if((l = index($2,")") - 2) < 0) l = length($2) - 1;
- print substr($2,2,l)}') &&
+ block=$(find /dev /devices -type b -print 2>/dev/null|head -1) &&
[[ -b $block && ! -b zerolength ]]
0:-b cond