Add /dev/fd support to Windows

GNU bash needs this functionality, otherwise it can't do <(cmd...).
This commit is contained in:
Justine Tunney 2024-01-06 18:05:14 -08:00
parent 2e5f662dfe
commit b3fb6cff43
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
6 changed files with 113 additions and 6 deletions

View file

@ -542,7 +542,7 @@
#define HAVE_HASH_BANG_EXEC 1
/* Define if you have the /dev/fd devices to map open files into the file system. */
/* #define HAVE_DEV_FD 1 */
#define HAVE_DEV_FD 1
/* Defined to /dev/fd or /proc/self/fd (linux). */
#define DEV_FD_PREFIX "/dev/fd/"
@ -1160,7 +1160,7 @@
/* #undef GETCWD_BROKEN */
/* #undef DEV_FD_STAT_BROKEN */
#define DEV_FD_STAT_BROKEN
/* An array implementation that prioritizes speed (O(1) access) over space,
in array2.c */