zsh-workers
 help / color / mirror / code / Atom feed
From: "Alexey I. Froloff" <raorn@altlinux.org>
To: Zsh list <zsh-workers@zsh.org>
Cc: "Alexey I. Froloff" <raorn@altlinux.org>
Subject: [PATCH] Ignore df errors
Date: Sun, 26 Feb 2012 19:33:36 +0400	[thread overview]
Message-ID: <1330270416-15356-1-git-send-email-raorn@altlinux.org> (raw)

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


                 reply	other threads:[~2012-02-26 15:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1330270416-15356-1-git-send-email-raorn@altlinux.org \
    --to=raorn@altlinux.org \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).