Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] portable mechanism to determine noatime



On Dec 10, 12:48am, Bart Schaefer wrote:
>
> { df $(mount || /sbin/mount | awk '/noatime/ {print $1, $3}') | fgrep "$(df .)" } >&/dev/null

Oops, exactly as written that runs df with no arguments if there are no
filesystems with noatime, so tweak it a little:

df ${$(mount || /sbin/mount | awk '/noatime/ {print $1, $3}'):-""}



Messages sorted by: Reverse Date, Date, Thread, Author