New review comment by Chocimier on void-packages repository https://github.com/void-linux/void-packages/pull/36659#discussion_r849762087 Comment: Reading and writing same file in one pipeline looks like race which can truncate file, did you test? It can be simplified to printf -- "${_curdep} " done | sort > ${PKGDESTDIR}/rdeps fi without truncating file inside `if`.