unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Eli Zaretskii" <eliz@is.elta.co.il>
Cc: jpw@shootybangbang.com, emacs-devel@gnu.org
Subject: Re: `eshell-under-cygwin-p' etc. inappropriate?
Date: Sun, 11 Aug 2002 16:49:49 +0300	[thread overview]
Message-ID: <9743-Sun11Aug2002164949+0300-eliz@is.elta.co.il> (raw)
In-Reply-To: <20020808.102316.91281422.Takaaki.Ota@am.sony.com> (message from Tak Ota on Thu, 08 Aug 2002 10:23:16 -0700 (PDT))

> From: Tak Ota <Takaaki.Ota@am.sony.com>
> Date: Thu, 08 Aug 2002 10:23:16 -0700 (PDT)
> 
> 07 Aug 2002 06:06:12 +0100: John Paul Wallington <jpw@shootybangbang.com> wrote:
> 
> > Maybe `eshell-under-cygwin-p' should be called something else?
> 
> I use the following function for my own use.
> 
> (defun cygwin-exists-p ()
>   "Search cygwin1.dll in the exec-path and return the full path if it exists or nil otherwise."
>   (catch 'exists
>     (let ((path-list exec-path))
>       (while path-list
> 	(let ((full-path (expand-file-name "cygwin1.dll" (car path-list))))
> 	  (if (file-exists-p full-path)
> 	      (throw 'exists full-path))
> 	  (setq path-list (cdr path-list)))))))

I think this might be dangerous: a user could have some Cygwin tools
installed, but she could still be using a natively-co9mpiled Emacs.

In other words, the mere fact of cygwin.dll's existence does not
necessarily mean that this Emacs is a Cygwin binary.

  reply	other threads:[~2002-08-11 13:49 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-06  9:24 `eshell-under-cygwin-p' etc. inappropriate? John Paul Wallington
2002-08-06 20:28 ` John Wiegley
2002-08-07  5:06   ` John Paul Wallington
2002-08-07  5:02     ` Eli Zaretskii
2002-08-07  5:23       ` John Wiegley
2002-08-07  5:23         ` Eli Zaretskii
2002-08-07  6:10           ` John Paul Wallington
2002-08-07 20:32             ` John Wiegley
2002-08-07 21:53               ` John Paul Wallington
2002-08-08  4:50               ` Eli Zaretskii
2002-08-10  0:44                 ` John Wiegley
2002-08-08 17:23     ` Tak Ota
2002-08-11 13:49       ` Eli Zaretskii [this message]
2002-08-12 18:19         ` Tak Ota
2002-08-13  9:48           ` Eli Zaretskii
2002-08-10  0:05   ` John Paul Wallington
2002-08-10  0:06     ` John Wiegley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9743-Sun11Aug2002164949+0300-eliz@is.elta.co.il \
    --to=eliz@is.elta.co.il \
    --cc=emacs-devel@gnu.org \
    --cc=jpw@shootybangbang.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).