Re: [PATCH] t5701: "wc -l" may add whitespace
- From
Matthieu Moy <matthieu.moy@imag.fr>
- Date
- Aug 29, 2007, 16:55 UTC
- Message-ID
- <vpqbqcqi8km.fsf@bauges.imag.fr>
- In-Reply-To
- <Pine.LNX.4.64.0708291752050.28586@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> 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