From: david AT coent DOT demon DOT co DOT uk (David Coe) Subject: Re: How to determine running under bash or cmd.exe 24 Oct 1996 00:36:55 -0700 Sender: daemon AT cygnus DOT com Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <326F0188.64EF.cygnus.gnu-win32@coent.demon.co.uk> References: <01BBC0FA DOT 2EAF0680 AT j3 DOT brf3 DOT jaring DOT my> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0Gold (WinNT; I) Original-To: Mansuriatus Shahrir Amir Original-CC: Cygnus Gnu-win32 Original-Sender: owner-gnu-win32 AT cygnus DOT com Mansuriatus Shahrir Amir wrote: > > 1) I only managed to get man.exe to compile. However my problem is to find > a clean way for console programs to determine whether they are running bash > or cmd.exe/command.com, so that '\\" or '/' can be automatically configured > like all Cygnus tools. If I port it for unix it'll run well under bash but not under cmd.exe and vice versa. Which variant of man are you using? Man1.4h (from the linux distribution) which I posted on the list a while back doesn't seem to mind whether it runs under sh or cmd. Good luck -- Dr David Coe \=\ 58 Fairlawn Drive, East Grinstead \=\ Tel +44 1342 326860 West Sussex, RH19 1NT, United Kingdom \=\ Fax +44 1342 316019 - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".