Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Ignore df errors
- X-seq: zsh-workers 30270
- From: "Alexey I. Froloff" <raorn@xxxxxxxxxxxx>
- To: Zsh list <zsh-workers@xxxxxxx>
- Subject: [PATCH] Ignore df errors
- Date: Sun, 26 Feb 2012 19:33:36 +0400
- Cc: "Alexey I. Froloff" <raorn@xxxxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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