Re: [PATCH] t5701: "wc -l" may add whitespace From: Johannes Schindelin <hidden> Date: 2016-06-15 22:43:31 Hi, On Wed, 29 Aug 2007, Matthieu Moy wrote: Johannes Schindelin [off-list ref] writes: quoted- 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. Who cares when my version is obviously portable? Ciao, Dscho
Keyboard shortcuts hback out one level jnext message in thread kprevious message in thread ldrill in Escclose help / fold thread tree ?toggle this help