Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] Ignore df errors



From: "Alexey I. Froloff" <raorn@xxxxxxxxxxxx>

---
 Test/C02cond.ztst |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst
index 5742755..494261e 100644
--- a/Test/C02cond.ztst
+++ b/Test/C02cond.ztst
@@ -139,7 +139,7 @@
   elif [[ "$(find . -prune -fstype nfs 2>/dev/null)" == "." ]]; then
     print -u$ZTST_fd "Warning: not testing [[ -N file ]] (not supported with NFS)"
     true
-  elif test -f /etc/mtab && { grep $(df . | tail -n1 | awk '{print $1}') /etc/mtab | grep -q noatime; }; then
+  elif test -f /etc/mtab && { grep $(df . 2>/dev/null| tail -n1 | awk '{print $1}') /etc/mtab | grep -q noatime; }; then
     print -u$ZTST_fd "Warning: not testing [[ -N file ]] (not supported with noatime file system)"
     true
   else
-- 
1.7.7.5



Messages sorted by: Reverse Date, Date, Thread, Author