Re: [PATCH] t5701: "wc -l" may add whitespace
From: Matthieu Moy <hidden>
Date: 2016-06-15 22:43:31
Johannes Schindelin [off-list ref] writes:
- linked=$(find objects -type f ! -links 1 | wc -l) && - test "$linked" = 0 + test $(find objects -type f ! -links 1 | wc -l) = 0
You can also use "test x -eq y" to compare integers. I don't know which one is the most portable. -- Matthieu