Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com Message-ID: <3B5E2555.1709CB68@t-online.de> Date: Wed, 25 Jul 2001 03:48:05 +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, apps" 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