Read and respond to this message at: 
https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/3581831
By: bladeoflight16

Hello,

I'm using the 3.81 version of make provided here. Currently, I don't have any
of the typical Unix-style shells installed, so when it runs, it's executing
via cmd.exe. Commands execute just fine with no problem, but I need this 
makefile
to be executed on Unix-like systems as well. I also can't just install a shell
because I'll be sharing this with other Windows users, too, who also don't have
any such shell.

I know how to use variables to have different command names, so that's fine.
The problem I'm having is detecting whether or not I'm using a Unix-style shell
or if I'm running something DOS-like. The SHELL variable doesn't update to match
the actual shell in use, sadly. It defaults to sh.exe and stays that unless
the variable is manually set (which I prefer to avoid requiring).

As a work around, I'm testing if the ComSpec variable is defined by the 
environment
and setting SHELL to its value if so. This really isn't satisfactory since,
if I understand correctly, a Windows user explicitly specifying a non-DOS-like
shell or a Unix-like OS user having a ComSpec environment variable would break
the functionality.

Is there a better way to deal with this? Thanks.

_____________________________________________________________________________________
You are receiving this email because you elected to monitor this topic or 
entire forum.
To stop monitoring this topic visit: 
https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/3581831/unmonitor
To stop monitoring this forum visit: 
https://sourceforge.net/projects/gnuwin32/forums/forum/74807/unmonitor

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users

Reply via email to