1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-18 15:21:16 +02:00

38358: "fgrep --" for noatime check in case a mount point is named "-"

This commit is contained in:
Barton E. Schaefer 2016-04-29 13:14:10 -07:00
parent fea013b8e8
commit 59de766e26
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2016-04-29 Barton E. Schaefer <schaefer@zsh.org>
* 38358: Test/C02cond.ztst: "fgrep --" for noatime check in case
a mount point is named "-" as in Fedora mock environment
2016-04-29 Peter Stephenson <p.stephenson@samsung.com>
* Sebastian: 38356: Src/Modules/curses.c, Doc/Zsh/mod_curses.yo:

View file

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