From: Matthieu Moy Date: Wed, 29 Aug 2007 16:55:53 GMT Subject: Re: [PATCH] t5701: "wc -l" may add whitespace Message-ID: In-Reply-To: Johannes Schindelin 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