Thread (21 messages) 21 messages, 6 authors, 2021-11-02

Re: [PATCH 1/3] t0301: fixes for windows compatibility

From: Carlo Arenas <hidden>
Date: 2021-09-13 07:14:06

On Sun, Sep 12, 2021 at 10:34 PM Bagas Sanjaya [off-list ref] wrote:
On 13/09/21 03.28, Carlo Marcelo Arenas Belón wrote:
quoted
test -S is not able to detect that a file is a socket, so use
test -f instead.
Isn't test -f just check for socket as regular file?
and that is exactly how they look; ironically a -f check in Linux
fails for sockets so maybe better to do -e?

an empty file with nothing that indicates in Windows Explorer or a
stat call (from WSL or git bash), that they are anything else.

Carlo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help