From 59de766e262fe778b865d17243eb831ed391b9da Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Fri, 29 Apr 2016 13:14:10 -0700 Subject: 38358: "fgrep --" for noatime check in case a mount point is named "-" --- Test/C02cond.ztst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Test/C02cond.ztst') diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst index 88cad0d64..f9fc185e9 100644 --- a/Test/C02cond.ztst +++ b/Test/C02cond.ztst @@ -154,7 +154,7 @@ ZTST_skip="[[ -N file ]] not supported on Cygwin" elif (( isnfs )); then ZTST_skip="[[ -N file ]] not supported with NFS" - elif { df -k -- ${$({mount || /sbin/mount} | awk '/noatime/ {print $1,$3}'):-""} | tr -s ' ' | fgrep "$(df -k . | tail -1 | tr -s ' ')" } >&/dev/null; then + elif { df -k -- ${$({mount || /sbin/mount} | awk '/noatime/ {print $1,$3}'):-""} | tr -s ' ' | fgrep -- "$(df -k . | tail -1 | tr -s ' ')" } >&/dev/null; then ZTST_skip="[[ -N file ]] not supported with noatime file system" else [[ -N $newnewnew && ! -N $unmodified ]] -- cgit 1.4.1