zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] Ignore df errors
@ 2012-02-26 15:33 Alexey I. Froloff
  0 siblings, 0 replies; only message in thread
From: Alexey I. Froloff @ 2012-02-26 15:33 UTC (permalink / raw)
  To: Zsh list; +Cc: Alexey I. Froloff

From: "Alexey I. Froloff" <raorn@altlinux.org>

---
 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-02-26 15:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-26 15:33 [PATCH] Ignore df errors Alexey I. Froloff

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).