summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-06-30 23:22:15 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-06-30 23:22:15 -0700
commitc89270cf0d7c7b3f9c99075211a8178aca932f38 (patch)
tree7a8de89ffc56a5c52d903f57ca10ca0b0127117b /Makefile
parent8cd9963dac81f478b17b8b064aa59c97c05a6465 (diff)
downloadtxr-c89270cf0d7c7b3f9c99075211a8178aca932f38.tar.gz
txr-c89270cf0d7c7b3f9c99075211a8178aca932f38.tar.bz2
txr-c89270cf0d7c7b3f9c99075211a8178aca932f38.zip
Dynamically determine whether shell is cmd.exe.
* stream.c (shell, shell_arg): New variables. (sh): Use shell and shell_arg, rather than hard-coded "/bin/sh" and "-c". (stream_init): Initialize shell and shell_arg to POSIX values. On Cygwin, call getusershell, and if it reports cmd.exe, use that instead, and adjust shell_arg to "/c". This will happen if the Cygwin DLL being used is the Cygnal version.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions