Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3B5F7613.7A0CBCF1@t-online.de> Date: Thu, 26 Jul 2001 03:44:51 +0200 From: 520066587150-0001 AT t-online DOT de (Jerome BENOIT) Reply-To: JGMBenoit AT Wanadoo DOT fr X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Cygnus Subject: cygwin GURU needed: native cygwin, native DOS and perl: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Sender: 520066587150-0001 AT t-dialin DOT net Bonjour: A TeX tool programmer asks me the fellowing question ? > How can we set the default for > the gs command name in the perl script? > > For example I can ask $^O: So I know if the perl > is a cygwin port. But then, what is the best method > to check, whether "gs" is installed or "gswin32c" has > to be used? > > For example: > $foo = `type gs` > or > $foo = `gs --version` > and checking error codes and output? Any idea ? Thanks in advance, Jerome BENOIT -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/