Re: [PATCH] t5701: "wc -l" may add whitespace
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Aug 29, 2007, 17:00 UTC
- Message-ID
- <Pine.LNX.4.64.0708291759270.28586@racer.site>
- In-Reply-To
- <vpqbqcqi8km.fsf@bauges.imag.fr>
Hi,
On Wed, 29 Aug 2007, Matthieu Moy wrote:
Show 9 quoted lines
> 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.
Who cares when my version is obviously portable?
Ciao, Dscho