Re: t0090-cache-tree fails due to wc whitespace
- From
- Hallvard Breien Furuseth <h.b.furuseth@usit.uio.no>
- Date
- Dec 14, 2011, 15:09 UTC
- Message-ID
- <hbf.20111214ogjn@bombur.uio.no>
- In-Reply-To
- <7F1792D2-8ED4-4546-8ED4-52B95E0AE9FC@silverinsanity.com>
Brian Gernhardt writes:
Show 6 quoted lines
> I was able to fix this by adding a sed command to remove leading spaces: > > - "($(git ls-files|wc -l) entries, 0 subtrees)" >expect && > + "($(git ls-files|wc -l|sed -e 's/^ *//') entries, 0 subtrees)" >expect && > > But I'm not sure if this is the best way to solve the issue.
Well, tr -d ' ' saves all of 7 characters from sed -e 's/^ *//'.
-- Hallvard