1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 22:11:54 +02:00

37453 (with Bart, started by Baptiste Daroussin, 37315): try to improve detection of noatime filesystem

This commit is contained in:
Oliver Kiddle 2015-12-31 12:53:13 +01:00
parent 3ca4ffa972
commit 4f5d7b7b37
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2015-12-31 Oliver Kiddle <opk@zsh.org>
* 37453 (with Bart, started by Baptiste Daroussin, 37315)
Test/C02cond.ztst: try to improve detection of noatime filesystem
* users/21114: Completion/Unix/Command/_dig: new completion
2015-12-30 Barton E. Schaefer <schaefer@zsh.org>

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 test -f /etc/mtab && { grep $(df . 2>/dev/null| tail -n1 | awk '{print $1}') /etc/mtab | grep -q noatime; }; 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 ]]