Re: [PATCH v2 3/4] git-p4: Fix t9815 git-p4-submit-fail test case on OS X
- From
Torsten Bögershausen <tboegi@web.de>
- Date
- Oct 5, 2015, 03:08 UTC
- Message-ID
- <5611E9BB.5070000@web.de>
- In-Reply-To
- <1443981977-64604-4-git-send-email-larsxschneider@gmail.com>
On 04.10.15 20:06, larsxschneider@gmail.com wrote:
Show 5 quoted lines
> From: Lars Schneider <larsxschneider@gmail.com> > > The stats command works differently on OS X compared to Linux. Detect > OS X and execute the appropriate assertions. >
Is there a special need to use the stat() function at all ?
That's what I read in t1301-shared-repo.sh:
modebits () {
ls -l "$1" | sed -e 's|^\(..........\).*|\1|'
}