by gray_-_wolf · 5y ago · 0 comments
Anyway, I suspect the following is POSIX compliant:
git status -s | awk 'gsub(/^ M /,"")' | tr \\0 \\n | ...I mostly hit things like these with alpine containers and openwrt. OpenWRT I guess could be considered "fringe operating system", but alpine (at least for containers) seems reasonably mainstream?
git status -s | awk 'gsub(/^ D /,"")' | tr \\n \\0 | ...