Thread (9 messages) flat view 9 messages, 5 authors, 2016-06-15

Re: t5539 broken under Mac OS X

From: Erik Faye-Lund <hidden>
Date: 2016-06-15 23:03:41

Possibly related (same subject, not in this thread)

On Fri, Jan 16, 2015 at 1:04 AM, Junio C Hamano [off-list ref] wrote:
Jeff King [off-list ref] writes:
quoted
Exactly. I am happy to submit a patch, but I cannot think of any
mechanisms besides:

  1. Calling `id`, which I suspect is very not portable.

  2. Writing a C program to check getuid(). That's portable for most
     Unixes. It looks like we already have a hacky wrapper on mingw that
     will always return "1".

Is (2) too gross?
Not overly gross compared to some existing test-*.c files, I would
say.

I wondered what 'perl -e 'print $>' would say in mingw, and if that
is portable enough, though.
$ perl -e 'print $>'
500
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help